Link to home
Start Free TrialLog in
Avatar of willsherwood
willsherwood

asked on

PHP null array detection

I want to concoct an IF statement to tell me if (for reasons of some error) a $_POST array from an HTML form  is empty.
Here is the results from: print_r ($_POST);

[argv] => Array ( ) [argc] => 0

What IF statement can i use to catch this situation?

thanks!
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of willsherwood
willsherwood

ASKER

thanks!  (never knew about   empty() - how easy :)   )