I use array_merge() to merge some association arrays.
$array1 = array('a'=>'A', 'b'=>'B');
$array2 = array(12=>12, 13=>13, 14=>14);

$merged = array_merge($array1,$array2);
And then, $merge = ('a'=>'A','b'=>'B',0=>12,1=>13,2=>14);

How to keep 12,13,14 as keys in the new array?
Thanks in advanced!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to