Re: [PHP] Re: spliting the elements in array

2007-07-04 Thread Fredrik Thunberg
Stut skrev: sivasakthi wrote: Thanks for your response.. Actually i have the collections of strings like, $not_quite_an_array = 'squid %tu %tl %mt %>A test %st.%hs %>a % $names = array(); foreach (explode("\n", $not_quite_an_array) as $line) { $line = trim($line); if (strlen($line) ==

Re: [PHP] Re: spliting the elements in array

2007-07-04 Thread Stut
sivasakthi wrote: Thanks for your response.. Actually i have the collections of strings like, $not_quite_an_array = 'squid %tu %tl %mt %>A test %st.%hs %>a % $names = array(); foreach (explode("\n", $not_quite_an_array) as $line) { $line = trim($line); if (strlen($line) == 0) continue;

Re: [PHP] Re: spliting the elements in array

2007-07-04 Thread sivasakthi
Thanks for your response.. Actually i have the collections of strings like, $not_quite_an_array = 'squid %tu %tl %mt %>A test %st.%hs %>a % sivasakthi wrote: > > Hi Guys, > > > > I have the array like below, > > > > squid %tu %tl %mt %>A > > test %st.%hs %>a % > test1 %tv %tr %Hs.%Ss %mt > > ..

[PHP] Re: spliting the elements in array

2007-07-04 Thread M. Sokolewicz
sivasakthi wrote: Hi Guys, I have the array like below, squid %tu %tl %mt %>A test %st.%hs %>a %squid,test,test1 in to another array.. could you help me to find the solution? Thanks, Siva What does your array look like _exactly_? ie. var_dump style output. Is it: array( array('s