RE: [PHP] loking for a item in string?

2004-11-07 Thread Murray @ PlanetThoughtful
> You've just hijacked this thread. > > Please start a new message instead of replying to a message and > changing the subject to talk about something else.\ Hi Curt, It would have been helpful if you'd included a little of the post you are concerned about. The last reply I have in this thread

Re: [PHP] loking for a item in string?

2004-11-07 Thread Curt Zirzow
You've just hijacked this thread. Please start a new message instead of replying to a message and changing the subject to talk about something else. Curt -- Quoth the Raven, "Nevermore." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] loking for a item in string?

2004-11-07 Thread Murray @ PlanetThoughtful
> 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 > > <[EMAIL PROTECTED]> wrote: > > > >>I am opening a fil

Re: [PHP] loking for a item in string?

2004-11-07 Thread M. Sokolewicz
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 <[EMAIL PROTECTED]> wrote: I am opening a file and then have to look

Re: [PHP] loking for a item in string?

2004-11-07 Thread Kevin
On Sun, Nov 07, 2004 at 08:32:53AM -0600, Greg Donald wrote: > On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks > preg_match() can do that. > > php.net/preg_match > Easiest possible way to do this ( for you the programmer ) is to slurp the whole file in as a string and search

Re: [PHP] loking for a item in string?

2004-11-07 Thread Greg Donald
On Sat, 6 Nov 2004 21:58:49 -0600, Dustin Wish with INDCO Networks <[EMAIL PROTECTED]> 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.11'; preg_match() can do th

[PHP] loking for a item in string?

2004-11-06 Thread Dustin Wish with INDCO Networks
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.11';