Sure, you can do it that way, but I generally find that having the values in an array to be a nuisance. If you agree, then just use
list($scalar_variable) =
in place of
$array_variable =
in getting the results.
list() can of course contain as many elements as you need. The downside of it is that the resulting correlation between the requested column and the variable assigned is position-sensitive, so the reasonability of list() in this context goes down as the query gets longer. And don't even think about saying:
$qry = mysql_query("select * from some_table");
list($a,$b,...) = mysql_fetch_row($qry);
because you have no control over what order the columns show up!