Array merging troubles...
Posted: Thu May 18, 2006 2:32 am
So I've been trying to work with this for a while and couldn't come up with any good way to do what I'm looking for.
I have:
and I was hoping for a result like this when merging...
Not pretty, I know. Lack of sleep and knowledge are definatly not helping. Any help would be awesome.
I have:
Code: Select all
$votes1 = array( 0=> array(13,'topic 1');
// merge with..
$votes2 = array( 1 => array(23,'topic 2');Code: Select all
$votes = array( 0 => array(13,'topic 1'),
1 => array(23,'topic 2');