함수 property exists()

property_exists

1 PHP[ | ]

class Dog {
  public $name;
}
$myDog = new Dog();
if(property_exists($myDog, "name")) echo "name exists";
// name exists

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}