> $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 Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to