Answers for "check if object exist php"

PHP
2

php does property exist

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

check if value exists in object php

if (property_exists($ob, 'a'))
Posted by: Guest on July-29-2021

Code answers related to "check if object exist php"

Browse Popular Code Answers by Language