[PHP] $array_nam[$variable][0]

2003-03-19 Thread Michael Smith
Hi, I'm trying to do a: $var = $array_name[$var2][0]; where $var2 is an integer. I've got this array from a database and I want to use a variable in the array... what's the exact syntax of this? -Michael -- Michael Smith [EMAIL PROTECTED] Custom87.net -- PHP General Mailing List

Re: [PHP] $array_nam[$variable][0]

2003-03-19 Thread CPT John W. Holmes
$var = $array_name[$var2][0]; where $var2 is an integer. I've got this array from a database and I want to use a variable in the array... what's the exact syntax of this? That is the correct syntax. Use print_r() on $array_name to see what it contains. ---John Holmes... -- PHP General

Re: [PHP] $array_nam[$variable][0]

2003-03-19 Thread Leif K-Brooks
Exactly the syntax you used. Michael Smith wrote: Hi, I'm trying to do a: $var = $array_name[$var2][0]; where $var2 is an integer. I've got this array from a database and I want to use a variable in the array... what's the exact syntax of this? -Michael -- The above message is encrypted