I need to build an array of objects from a SQL query.
From my query, I get id. I would like to build my different variables like that;
$var0
$var1
$var2
So, I would like to do the following, but I have the wrong syntax:
for ($i = 0; $i < sizeof($resultarray); $i++) {
${var$i} = new Pictureobject();
}
I seeked the documentation, but I can't get the good syntax. Anyone could help me?