- property_exists: documentation ( source)
- print_r: documentation ( source)
<?php
$obj = (object)array('123' => '456');
print_r($obj);
if (!property_exists($obj,123)) echo 'property 123 does not exist',"\n";
if ( !isset( $obj->{123} ) ) echo 'property 123 is null',"\n";