Is there a way to convert a multidimensional array
to a stdClass
object in PHP?
Casting as (object)
doesn't seem to work recursively. json_decode(json_encode($array))
produces the result I'm looking for, but there has to be a better way...
Is there a way to convert a multidimensional Casting as
| ||||
feedback
|
As far as I can tell, there is no prebuilt solution for this, so you can just roll your own:
| ||||
feedback
|
| ||||
feedback
|