Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What PHP 5.5 might look like. Parent comment
Either:
$copy = $original;
function array_copy(array $a) { return $a; }
The only potential issue is if the array contains references deeper in.
There are no comments on this comment yet.
Either:
Or, if you must have a function, 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.