update : 2015.11.03
php.shukuma.com검색:
|
ArrayAccess::offsetExists(PHP 5 >= 5.0.0) ArrayAccess::offsetExists — Whether an offset exists 설명Whether or not an offset exists. This method is executed when using isset() or empty() on objects implementing ArrayAccess.
인수
반환값
성공 시
예제
Example #1 ArrayAccess::offsetExists() example
<?php 위 예제의 출력 예시: Runs obj::offsetExists() string(17) "obj::offsetExists" bool(true) Runs obj::offsetExists() and obj::offsetGet() string(17) "obj::offsetExists" string(14) "obj::offsetGet" bool(false) Runs obj::offsetExists(), *not* obj:offsetGet() as there is nothing to get string(17) "obj::offsetExists" bool(true) |