On Thursday 25 July 2002 20:40, lallous wrote:
> Can I get the starting position of my string occurence when using any
> regexps searching functions in PHP ?
> for example:
> $mem='this is a test';
> preg_match('/test/', ...) should return me somehow: 10
If search string does not involve a regex then just use the plain string
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
We will have solar energy as soon as the utility companies solve one technical
problem -- how to run a sunbeam through a meter.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php