Answers for "how to check if an object has a specific property in php"

PHP
2

php check if object has attribute

if(property_exists($car,color)){
	//$car->color exists
}
Posted by: Guest on June-19-2019

Code answers related to "how to check if an object has a specific property in php"

Browse Popular Code Answers by Language