Re: pulling arrays from nested arrays?

From: Date: Sun, 04 Mar 2001 01:16:47 +0000
Subject: Re: pulling arrays from nested arrays?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5808@lists.php.net to get a copy of this message
At 01:21 04.03.2001, Doug Brewer said: --------------------[snip]-------------------- >$new_array = $first_array["second array"]; # what's wrong with this? this is a copy of $first_array["second array"]. >while(list($this, $that) = each($new_array)) { > # doesn't work! >} this modifies the copy! After applying the modifications, do $first_array["second array"] = $new_array; to replace the original with the modified contents. Usually you would use references to arrays to handle this, but I haven't found a way yet to get list() to return references instead of copies... ...ebird >O Ernest E. Vogelsinger (\) http://www.1-at-web.at/ ^ ICQ# 13394035

« previous php.windows (#5808) next »