note 4548 deleted from strpos by ronabop

From: Date: Fri, 11 Aug 2000 18:21:34 +0000
Subject: note 4548 deleted from strpos by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1377@lists.php.net to get a copy of this message
Ahem. Maybe I'm terribly wrong here, but I see a problem here:<BR> <TT>if ( strpos ( "1234" , "x" ) )</TT> will fail because strpos returns false<BR> But if I check <TT>strpos ( "1234" , "1" )</TT>, this will return 0, which will cause the <TT>if</TT> to fail also !<BR> Do I really have to check <TT>is_string</TT> after strpos ?!?<BR>

« previous php.notes (#1377) next »