method stdClass::toArray() 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);