I need to copy an array by value, not by reference. Is there a best
way to do this? Right now I found serialize/unserialize which seems
to do the trick.
Python has a function called deepcopy:
http://docs.python.org/lib/module-copy.html
For Java, it appears you can use a handmade function or serialize/
unserialize:
http://java.sun.com/developer/JDCTechTips/2001/tt0410.html
PHP seems to be similar to Java, in that you can write a function
yourself or use serialize/unserialize. I haven't found a function
like deepcopy.
Thoughts?
Thanks,
-Aaron
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php