I have keys and values as follows :
[store_id] => 1
[store_name] => StarShop
[store_phone] => 62-22-8383838
[store_email] => admin@starshop.com
I use this to make objects with $this from the above arrays
foreach($above_array as $key => $value){
$this->$key = $value;
}
echo $this->store_name; // this does not work, please help