i want to create a new variable name for each result of a query.
for example: ( this is bad code )
PHP Code:
<?
// some query here
for($i=0;$i<$num;$i++)
{
$object_$i=mysql_result($result,$i,"id");
}
?>
my goal would be to end up with variable names:
$object_0
$object_1
$object_2
is it possible to dynamically create variable names based on other variables?