php check if object has property code example
Example 1: php check if class exists
if(class_exists('dbinfo')){
Example 2: php does property exist
if(property_exists($car,color)){
//$car->color exists
}
if(class_exists('dbinfo')){
if(property_exists($car,color)){
//$car->color exists
}