Answers for "how to convert stdClass Object 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

Code answers related to "how to convert stdClass Object to array."

Browse Popular Code Answers by Language