Hello.

I wonder why the following code is not accepted by the PHP interpreter

$fooVar = mysql_fetch_assoc($result)["barColumn"];

I am forced to create an intermediary variable for the array returned from mysql_fetch_assoc(), like this:

$record = mysql_fetch_assoc($result);
$fooVar = $record["barColumn"];

Why is that? It doesn't seem logical. Could it be a bug?

Thank you,

--
Ney André de Mello Zunino


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



Reply via email to