note 24330 deleted from language.variables.variable by danbrown

From: Date: Wed, 24 Jun 2009 17:01:04 +0000
Subject: note 24330 deleted from language.variables.variable by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157417@lists.php.net to get a copy of this message
Note Submitter: (J. Dyer) jkdyer_at_vlsmaps_com ---- ... to continue my previous example of placing dynamically named objects into an array, we can easily pull everything back out again using a basic array function: foreach. <?php //... foreach($array as $key=>$object){ echo $key." -- ".$object->print_fcn()." <br/>\n"; } // end foreach ?> Through this, we can pull a dynamically named object out of the array it was stored in without actually knowing its name.

« previous php.notes (#157417) next »