Mutturaj
0
Q:

php check if object has attribute

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

New to Communities?

Join the community