note 74313 deleted from function.pos by nlopess

From: Date: Wed, 04 Apr 2007 18:28:17 +0000
Subject: note 74313 deleted from function.pos by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125096@lists.php.net to get a copy of this message
Note Submitter: Justin ---- Here's how to return a reference to an element within your array, instead of a copy like pos/current returns: <?php function &posRef(&$a) { $i = key($a); return $a[$i]; } ?> Justin @ http://www.merchantos.com/tour/point-of-sale/

« previous php.notes (#125096) next »