array going backwards
Posted: Mon Mar 13, 2006 5:30 am
ok I have a array like this
and what I need to do is find the channel name thing and put it at the top of the section that it belongs to like this
I am having a rough time with this logic, any help?
Code: Select all
[0] => username=bogus
[1] => channel => default
[2] =>
[3] => id=term_funk_soul
[4] => username=soul
[5] => number=soul
[6] => channel => outgoing_funkCode: Select all
[0] => The channel is 'Default'
[1] => username=bogus
[2] => channel => default
[3] =>
[4] => The channel is 'outgoing_funk'
[5] => id=term_funk_soul
[6] => username=soul
[7] => number=soul
[8] => channel => outgoing_funk