note 84132 deleted from language.references.return by tularis

From: Date: Mon, 30 Jun 2008 11:33:44 +0000
Subject: note 84132 deleted from language.references.return by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141004@lists.php.net to get a copy of this message
Note Submitter: Pl Kiss Reason: bad code ---- SIMPLE example -> return array <?php class c_parrent { public $vPARAMS; function __construct(&$pPARAMS) { $this->vPARAMS=&$pPARAMS; } function get_items() { echo "-------------<br>"; foreach($this->vPARAMS as $vFieldName => $vFieldValue) echo $vFieldName."=>".$vFieldValue."<br>"; } function set_items($pKey, $pValue) { $this->vPARAMS[$pKey]=$pValue; } } $vTESZT=array("F1", "F2", "F3"); $vTesztObj=new c_parrent($vTESZT); $vTesztObj->get_items(); $vTESZT["HU"]="Magyar"; $vTesztObj->set_items("EN", "English"); $vTesztObj->get_items(); echo "--SUM-----------<br>"; foreach($vTESZT as $vFieldName => $vFieldValue) echo $vFieldName."=>".$vFieldValue."<br>"; ?>

« previous php.notes (#141004) next »