how to convert stdClass Object to array. code example
Example: stdclass to array
$stdClass = json_decode(json_encode($booking));
$array = json_decode(json_encode($booking), true);
$stdClass = json_decode(json_encode($booking));
$array = json_decode(json_encode($booking), true);