note 9211 rejected and deleted from strstr by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Mon, 23 Oct 2000 07:41:54 +0000 |
| Subject: | note 9211 rejected and deleted from strstr by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6867@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);