Re: [PHP] strip out repeated ocurrence of a string

2010-01-26 Thread Camilo Sperberg
> > a certain string can contain the following information: >> >> $string = >> 'hi{value1;value2}bye{value1;value3}hi{value1;value4}hi{value1;value2}bye{value1;value2}'; >> >> What I want is to be able to get this result: >> >> $string = >> 'hi{value1;value2}bye{value1;value3}hi{value1;value4}bye{v

Re: [PHP] strip out repeated ocurrence of a string

2010-01-26 Thread Ashley Sheridan
On Tue, 2010-01-26 at 07:56 -0500, Al wrote: > > On 1/25/2010 10:48 PM, Camilo Sperberg wrote: > > Hello list :) > > > > I have this problem, a certain string can contain the following information: > > > > > > $string = ' > > hi{value1;value2} > > bye{value1;value3} > > hi{value1;value4} > > hi{v

Re: [PHP] strip out repeated ocurrence of a string

2010-01-26 Thread Al
On 1/25/2010 10:48 PM, Camilo Sperberg wrote: Hello list :) I have this problem, a certain string can contain the following information: $string = ' hi{value1;value2} bye{value1;value3} hi{value1;value4} hi{value1;value2} bye{value1;value2} '; What I want is to be able to get this result:

[PHP] strip out repeated ocurrence of a string

2010-01-25 Thread Camilo Sperberg
Hello list :) I have this problem, a certain string can contain the following information: $string = ' hi{value1;value2} bye{value1;value3} hi{value1;value4} hi{value1;value2} bye{value1;value2} '; What I want is to be able to get this result: $string = ' hi{value1;value2} bye{value1;value3} h