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

1번째 줄: 1번째 줄:
{{DISPLAYTITLE:PHP array_key_exists()}}
==개요==
==개요==
;PHP array_key_exists()
;PHP array_key_exists()

2018년 3월 10일 (토) 22:46 판

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 }}