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
PHP will copy the array by default. References in PHP have to be explicit.
$a = array(1,2); $b = $a; // $b will be a different array $c = &$a; // $c will be a reference to $a