Page 1 of 1

Copying a multi-dimensional array

Posted: Thu Feb 07, 2008 12:54 pm
by kcravimss
1) How to copy a multi-dimensional array into another array as a value such that changes made to the original array does not get reflected in the replicated(copied) array?
2) How to convert an object into an array?
A sample code snippet accompanying the above mentioned questions will be helpful. Kindly let me know the solution.

Re: Copying a multi-dimensional array

Posted: Thu Feb 07, 2008 1:01 pm
by Christopher
1. Just assign it
2. get_object_vars() maybe

Maybe you could provide a link to the sample code so we could see it too.