I'll have several incoming arrays containing values that I want to peel off into two main arrays to work with later. For instance:
Code: Select all
$some_stuff = array('TAG', 'text', 'TAG2', 'text2', 'TAG3', 'text3',...);
$some_other_stuff = array ('TAG4', 'text4', 'TAG5', 'text5',...);Code: Select all
$tags = array('TAG', 'TAG2', 'TAG3', 'TAG4', 'TAG5',...);
$content = array('text', 'text2', 'text3', 'text4', 'text5',...);Could anyone show me how to set up such a loop?
Thanks!