note 33420 added to function.strpos

From: Date: Wed, 25 Jun 2003 13:54:50 +0000
Subject: note 33420 added to function.strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-50989@lists.php.net to get a copy of this message
I honestly don't see why such "hacks" has to be used. I mean, we all realize that strpos() has to return 0, but why not just return -1 on not found, and the position otherwise. -Kalle. ---- Manual Page -- http://www.php.net/manual/en/function.strpos.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33420 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33420&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33420&report=yes

« previous php.notes (#50989) next »