note 86526 added to function.strpos

From: Date: Thu, 23 Oct 2008 01:19:55 +0000
Subject: note 86526 added to function.strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-145629@lists.php.net to get a copy of this message
careful that when you put a strpos in an if statement that you take note that if the string is in the 0 position it will return false, causing your control structure to think its not in the string. ---- Server IP: 69.147.83.197 Probable Submitter: 67.110.122.201 ---- Manual Page -- http://www.php.net/manual/en/function.strpos.php Edit -- https://master.php.net/note/edit/86526 Del: integrated -- https://master.php.net/note/delete/86526/integrated Del: useless -- https://master.php.net/note/delete/86526/useless Del: bad code -- https://master.php.net/note/delete/86526/bad+code Del: spam -- https://master.php.net/note/delete/86526/spam Del: non-english -- https://master.php.net/note/delete/86526/non-english Del: in docs -- https://master.php.net/note/delete/86526/in+docs Del: other reasons-- https://master.php.net/note/delete/86526 Reject -- https://master.php.net/note/reject/86526 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145629) next »