how to check if an object has a specific property in php code example Example: php does property exist if(property_exists($car,color)){ //$car->color exists }