> 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

Does it have to be a regular expression you are searching for? If not,
you can use strpos().

www.php.net/strpos

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to