note 49252 deleted from function.strpos by nlopess

From: Date: Fri, 21 Jan 2005 14:46:43 +0000
Subject: note 49252 deleted from function.strpos by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83731@lists.php.net to get a copy of this message
Note Submitter: euGee ---- yoshipp, in PHP4, strrpos doesn't accept needles more than one character. Thus, in case 1 and 3, the needles are "b", and in case 2, the needles is "o". So the results are correct. strrpos('bob','bob') => 2 strrpos('bob','ob') => 1 strrpos('bob','b') => 2

« previous php.notes (#83731) next »