conditional statement problems
| From: | Pablo Oliva | Date: | Tue, 01 Oct 2002 07:11:08 +0000 |
| Subject: | conditional statement problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118324@lists.php.net to get a copy of this message | ||
$title_err = ($adTitle == "") ? 1 : strlen($adTitle) > 50 ? 2 : 0;
Can anyone tell me why this is not evaluating correctly (returning a
value of 1) when $adTitle is an empty string?