post - PHP checking $_POST -


I have some form fields, when a form is stored, creates an array within $ _POST, Need to see the array There are at least 4 keys, how can I check this? I do not know

Try:

  & lt? Php if (count ($ _ POST)> = 4): // Do your luggage: // Adjust your error stuff;  

If you want to write an array as $ _POST within $ _POST, then use it count ($ _ POST ['name_of_key_to_array_you_want_to_count']) < / P>


Comments