Posts tagged with "object"
SB
Go
Home
Blog
Apps
Work
Contact
Feed
How to Cast an Array to an Object with PHP
It's short and sweet. $obj_from_array = (object)['key'=>'val']; echo $obj_from_array->key;
Written by Sean Behan on 12/02/2017