different and logic between PHP4 and PHP5

From: Date: Mon, 12 Mar 2007 18:53:12 +0000
Subject: different and logic between PHP4 and PHP5
Groups: php.general 
Request: Send a blank email to php-general+get-250308@lists.php.net to get a copy of this message
Hi The following code: <?php $b=""; $c="df"; $a=($b and $c); echo "A = ".$a; ?> yields: A = 0 in PHP 4 and A = in PHP 5 How can I get the same behavior in PHP5 as in PHP4 without changing the source code? Is there an option in php.ini I'm missing? ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html

« previous php.general (#250308) next »