PHP array key exists()

Jmnote (토론 | 기여)님의 2016년 9월 14일 (수) 00:41 판 (→‎같이 보기)

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