php object is empty

35

$arr = (array)$obj;
if (!$arr) {
    // do stuff
}
$x = new stdClass();
if( $obj !== null )
{
     // DO YOUR WORK
}

Comments

Submit
0 Comments