Aug. 21st, 2006

metawidget: A platypus looking pensive. (Default)
How ugly is this approach to making a copy of an array that moves only values, not references?

$copy_of_array = unserialize(serialize($multidimensional_array));

I feel a little dirty... assuming I'm not too worried about efficiency, should I?

Profile

metawidget: A platypus looking pensive. (Default)
metawidget
Page generated Jul. 6th, 2025 06:09 pm

June 2025

S M T W T F S
123 4567
89 1011121314
15 161718192021
22 232425 262728
2930     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Powered by Dreamwidth Studios