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 with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to