Re: EZ array problem - What's wrong with my brain?

From: Date: Tue, 05 Dec 2006 09:59:07 +0000
Subject: Re: EZ array problem - What's wrong with my brain?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-245511@lists.php.net to get a copy of this message
Brian Dunning wrote: > That works, but the value 1.2 is unknown, I can't hardcode it. If it is only a one element array you have several options. foreach ($array as $unknown_key=>$the_values) { ... } or reset($array); $the_values = current($array); $unknown_key = key($array); or various other clever things with list and each..... Col.

« previous php.general (#245511) next »