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