- property_exists: documentation ( source)
- print_r: documentation ( source)
<?php
$obj = new stdClass;
$obj->{123} = '456';
print_r($obj);
echo $obj->{123},"\n";
if (isset($obj->{123})) { echo 'Property 123 is set',"\n";}
if (property_exists($obj,123)) echo 'Property 123 exists',"\n";
echo $obj->{123};