Where is recommended to use one of them? I want to store data from articles listed from db.
It's a simple question:
echo $Datastore->name; //I like it works with foreach
//vs
echo $Datastore['name'];
Which is the best? Is there any difference between stdClass
and array
speed of getting elements?