|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-30 18:41 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 18:00:01 2025 UTC |
I encountered a strange behaviour of comparing values. I've only encountered it with a value of "INF". The following script should cause "INF" to be displayed in version 3.0.18 on Linux <?php $arr =array( "TEST", "INF" ); $cnt = sizeof($arr); for ($x=0; $x < $cnt; $x++) { $item = $arr[$x]; if ("$item" == "$item") { } else { print "$item<br>\n"; } } ?>