PHP still can't compare...

From: Date: Tue, 04 Dec 2001 22:06:07 +0000
Subject: PHP still can't compare...
Groups: php.dev 
Request: Send a blank email to php-dev+get-72517@lists.php.net to get a copy of this message
Greetings, Another problem with PHP trying to make a simple comparison and failing... This works: $iQty = -1; if ( isset($g_aForm["qty_$iKey"]) AND is_numeric($g_aForm["qty_$iKey"]) ) $iQty = $g_aForm["qty_$iKey"]; But this does not: $iQty = ( isset($g_aForm["qty_$iKey"]) AND is_numeric($g_aForm["qty_$iKey"]) ? $g_aForm["qty_$iKey"] : -1); Explain... Thanks, Matthew

« previous php.dev (#72517) next »