Answers for "stdclass object convert to array"

PHP
0

stdclass to array

$stdClass = json_decode(json_encode($booking));
$array = json_decode(json_encode($booking), true);
Posted by: Guest on April-22-2021
0

Turning a StdClass object into an array

$array = get_object_vars( $obj );
Posted by: Guest on July-13-2021

Code answers related to "stdclass object convert to array"

Browse Popular Code Answers by Language