note 9211 added to strstr
| From: | aqadir at php2 dot chek dot com | Date: | Mon, 23 Oct 2000 05:08:09 +0000 |
| Subject: | note 9211 added to strstr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6861@lists.php.net to get a copy of this message | ||
It would be usefull and effiecient if all the string searching functions (strstr, stristr, strstr,
strpos etc) could also take in an extra, optional parameter: the start index of the string being
searched.
for example:
strstr ("This is a test", "is" , 4);
would return 5.
this is more effiecient than:
strstr(substr("This is a test", 4), 4);
http://www.php.net/manual/function.strstr.php