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