Re: [PHP] one pattern, one string, multiple results

2001-09-26 Thread Richard Baskett
Thank you much! I was going to use preg_grep, preg_replace, preg_match, preg_match_all something like that, but this subsrt_count() will do the trick nicely! Thank you very much! Rick > Hi Richard. > > Subsrt_count() is what you are looking for: > int substr_count (string haystrack, string ne

RE: [PHP] one pattern, one string, multiple results

2001-09-26 Thread Maxim Maletsky \(PHPBeginner.com\)
Hi Richard. Subsrt_count() is what you are looking for: int substr_count (string haystrack, string needle) php.net/substr_count P.S: Helen Fielding's Bridget Jones Diary is a nice novel, hun? Maxim Maletsky PHPBeginner.com -Original Message- From: Richard Baskett [mailto:[EMAIL PRO

Re: [PHP] one pattern, one string, multiple results

2001-09-26 Thread
From: Richard Baskett <[EMAIL PROTECTED]> Date: Wed, Sep 26, 2001 at 12:01:11AM -0700 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] one pattern, one string, multiple results > I just can not seem to figure this out. > > If i have a pattern 'arc' and I want to search the string: > "an arc is an