News for hackers. Stuff that matters.
Re:What PHP 5.5 might look like by ircmaxell on Friday July 13, 2012 @11:25AM (#4240177)
Very simple.

Either:

    $copy = $original;
Or, if you must have a function,

    function array_copy(array $a) {
        return $a;
    }
Arrays use the normal copy-on-write semantics of PHP. They are not passed by reference or object handle...

The only potential issue is if the array contains references deeper in.

There are no comments on this comment yet.