Re: [PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Bret Hughes
On Mon, 2005-01-17 at 09:27, Vikram Vaswani wrote: > Hi > I have a string like this: > > Just when you begin to think the wagon of Vietnam-grounded movies is grinding > to a slow halt, you’re hit squarely in the face with another one. However, > while other movies depict the gory and glory o

Re: [PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Jochem Maas
Vikram Vaswani wrote: Hi I have a string like this: Just when you begin to think the wagon of Vietnam-grounded movies is grinding to a slow halt, you’re hit squarely in the face with another one. However, while other movies depict the gory and glory of war and its effects, this centres on the

Re: [PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Benjamin Edwards
You need to use regular expresions, I think there is a regex_replace frunction (or something like that). http://etext.lib.virginia.edu/helpsheets/regex.html is a fairly good introduction to regular expresions - learn to love them ;) >>> Vikram Vaswani <[EMAIL PROTECTED]> 01/17/05 03:27pm >>> Hi

RE: [PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Jay Blanchard
[snip] I have a string like this: Just when you begin to think the wagon of Vietnam-grounded movies is grinding to a slow halt, you're hit squarely in the face with another one. However, while other movies depict the gory and glory of war and its effects, this centres on the psychology of troo