note 58681 deleted from function.strstr by betz

From: Date: Sat, 12 Nov 2005 08:31:43 +0000
Subject: note 58681 deleted from function.strstr by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98457@lists.php.net to get a copy of this message
Note Submitter: ---- bmack at kirix dot com, maybe you didn't try this: echo strstr($myString, 'ter_'); > I just found out with the following example, > that the second parameter of strstr is only > allowed to be one character ... > $myString = "filter_nonsense"; > echo strstr($myString, 'filter_'); > // returns "filter_nonsense"; > echo strstr($myString, '_'); > // returns "_nonsense";

« previous php.notes (#98457) next »