note 25819 added to function.strpos

From: Date: Mon, 07 Oct 2002 22:37:03 +0000
Subject: note 25819 added to function.strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-37761@lists.php.net to get a copy of this message
to prevent confusion between position 0 and nothing found, just pad the haystack with a couple of spaces or something. if (strpos(" " . $haystack,$needle)) -- http://www.php.net/manual/en/function.strpos.php http://master.php.net/manage/user-notes.php?action=edit+25819 http://master.php.net/manage/user-notes.php?action=delete+25819 http://master.php.net/manage/user-notes.php?action=reject+25819

« previous php.notes (#37761) next »