php does property exist
snippet in php

php does property exist

user6849

if(property_exists($car,color)){
	//$car->color exists
}