Re: preg_match() occurence position

From: Date: Thu, 25 Jul 2002 11:55:48 +0000
Subject: Re: preg_match() occurence position
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109478@lists.php.net to get a copy of this message
In article <20020725113938.23973.qmail@pb1.pair.com>, phplist@lgwm.org says... > Hello, > > 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 > > > Thanks strpos might be useful -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#109478) next »