note 59407 deleted from function.strchr by bjori

From: Date: Tue, 11 Apr 2006 20:36:27 +0000
Subject: note 59407 deleted from function.strchr by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-107799@lists.php.net to get a copy of this message
Note Submitter: Tarin ---- I'm afraid John's note also isn't entirely true. While, when $needle is a single character, strstr produces the same result as strchr, but when $needle contains a string (i.e. multiple characters), strstr will search for the entire string, where strchr will only use the first character of the string. Now the names of the functions kind of make sense, too ;).

« previous php.notes (#107799) next »