|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-24 07:21 UTC] hholzgra@php.net
[2002-07-24 07:36 UTC] marcin dot smieszek at pointblue dot com dot pl
[2002-07-24 08:05 UTC] hholzgra@php.net
[2002-07-24 08:14 UTC] marcin dot smieszek at pointblue dot com dot pl
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 22:00:02 2026 UTC |
any variable, set, but set to 0 (but not "0") compared with any string always returns true. try ------- if (0=="sth) {echo "problem";} ------- or sth like this: ------- $a=array("blahblah","1",1,"0",0); foreach ($a as $value) { if ($value == "aaaa") { echo "<b>true</b><br>"; } else { echo "false<br>"; } } ------