PHP -Klon
//Copies an existing object
$objectA = clone $objectB;
DirkVuurst
//Copies an existing object
$objectA = clone $objectB;
$b = $a
$b = array_merge(array(), $a); // reindex the array