Re: If statement question...
| From: | M. Sokolewicz | Date: | Mon, 11 Oct 2004 05:38:57 +0000 |
| Subject: | Re: If statement question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199145@lists.php.net to get a copy of this message | ||
Gh wrote:
I would like to know how I can code the the following conditional check.... if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use.... if(!isset($_GET['api'] || strlen($_GET['api']) == 0 || !is_numeric($_GET['api'])) {// do something }