$unlink is the right choice. But on 1.3 (it will be backwards compatible) this method will be deprecated in favor of Object.clone, Array.clone etc, if im not wrong.
-- Fábio Miranda Costa Solucione Sistemas Engenheiro de interfaces On Mon, Feb 1, 2010 at 8:27 AM, woomla <[email protected]> wrote: > What is the best way to create a true copy from an object/array? > By 'true copy' I mean a new object/array with the same key/index value > pairs. > > So far I see three possibilities $extend, $merge, $unlink. > > W. >
