In my controller i'm using data variable like this
$data['some_var'] = $this->Model->some_info($param);
So if i do var_dump
this $data['some_var']
it will print like this
object(StdClass)[4]
Public 'blah1' => String 'blah1' (Length=5)
Public 'blah2' => String 'blah2' (Length=5)
Public 'blah3' => String 'blah3' (Length=5)
Public 'blah4' => String 'blah4' (Length=5)
I know how to use this $data[]
into view file but i want to use this $data[]
into controller file,
What i want , i want to use blah1
from array
I tried like this
$var = $data['some_var']['blah1'];
$var = $some_var->blah1;
I'm not sure how to sort-out this things