Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php copy array

// PHP will copy the array by default.
$a = array(1,2);

$b = $a; // $b will be a different array

$c = &$a; // $c and $a will be the same array (same reference)
 
PREVIOUS NEXT
Tagged: #php #copy #array
ADD COMMENT
Topic
Name
8+8 =