Is there a function to make a copy of a PHP array to another?
I have been burned a few times trying to copy PHP arrays. I want to copy an array defined inside an obj
foreach($a as $key => $val) $b[$key] = $val ;
Preserves both key and values. Array 'a' is an exact copy of array 'b'