semi-dirty PHP trick?
Aug. 21st, 2006 12:20 amHow ugly is this approach to making a copy of an array that moves only values, not references?
I feel a little dirty... assuming I'm not too worried about efficiency, should I?
$copy_of_array = unserialize(serialize($multidimensional_array));I feel a little dirty... assuming I'm not too worried about efficiency, should I?
no subject
Date: 2006-08-21 04:34 am (UTC)Even Perl sound sane compared to PHP.
(sorry I don't have a real answer)