"PHP array key exists()"의 두 판 사이의 차이

16번째 줄: 16번째 줄:
* [[PHP property_exists()]]
* [[PHP property_exists()]]
* [[PHP 함수 where()]]
* [[PHP 함수 where()]]
* [[함수 array_key_exists()]]


==참고 자료==
==참고 자료==

2017년 4월 13일 (목) 11:30 판

1 개요

PHP array_key_exists()
  • 배열 내에 키(또는 인덱스)가 있는지 확인하는 PHP 함수
$arr = ['first' => 1, 'second' => 4];
if (array_key_exists('first', $arr)) {
    echo "The 'first' element is in the array";
}

2 같이 보기

3 참고 자료

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