|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-04 19:34 UTC] torben@php.net
[2001-05-04 20:11 UTC] ms at marcant dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
There is a subtle problem with functions returning 'false' as an return status indication. Take for example strstr(haystack, needle). The function returns 'false' to indicate that <needle> could not be found in <haystack> or returns the substring of haystack starting with <needle> With certain strings the above assertion is not true with php: $haystack='1230'; if (strstr($haystack,"0")==false) { echo ' oh no.. '; }