|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-06-19 17:46 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-06-19 17:46 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 23:00:02 2026 UTC |
Description: ------------ <?php $x='E'; // Assignment of Parameter if ( $x!='0') // Check if the value is '0' (string) { echo "False"; } else { echo "TRUE"; } ?> Above code returns False while below code returns TRUE for the if condition with a warning message --> Notice: Use of undefined constant E - assumed 'E' <?php $x='E'; // Assignment of Parameter if ( $x!=0) // Check if the value is 0 (integer) { echo "False"; } else { echo "TRUE"; } ?>