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
$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
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
3 matches
Mail list logo