Re: Converting array keys to variables?

From: Date: Fri, 17 Nov 2006 17:00:47 +0000
Subject: Re: Converting array keys to variables?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-244817@lists.php.net to get a copy of this message
Jochem Maas wrote:
$file = $array[0][file]; $path = $array[0][path]; $year = $array[0][year]; $month = $array[0][month]; $day = $array[0][day]; $hhmm = $array[0][hhmm];
    
where the **** are your quotes for the array keys? have an E_NOTICE or six. I was typing fast and didn't bother to put them in when I was composing my e-mail. They did exist in the actual code, though it's now a moot point as I'm not doing it that way anymore. :)
Thanks for bringing it up though. -- W | It's not a bug - it's an undocumented feature. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Imaging . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.

« previous php.general (#244817) next »