Re: loking for a item in string?
| From: | M. Sokolewicz | Date: | Sun, 07 Nov 2004 14:57:22 +0000 |
| Subject: | Re: loking for a item in string? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201429@lists.php.net to get a copy of this message | ||
I'd rather suggest using strpos(), seen as it's quite a bit faster than using a regular expression engine (especially when you don't need one)
Greg Donald wrote:
On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks <dwish@indco.net> wrote:I am opening a file and then have to look for a value inside the string. Is there an easy way to do this? I need the value in this string for the var djLast = '45.119999';preg_match() can do that. php.net/preg_match