metawidget: A platypus looking pensive. (Default)
[personal profile] metawidget
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?

Date: 2006-08-21 04:34 am (UTC)
From: [identity profile] http://users.livejournal.com/hub_/
well it is PHP. The language wihtout design.

Even Perl sound sane compared to PHP.

(sorry I don't have a real answer)

Profile

metawidget: A platypus looking pensive. (Default)
metawidget
Page generated Jan. 18th, 2026 12:34 am

June 2025

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

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Powered by Dreamwidth Studios