 |
|
|  |
|
 |
16년 전 |
주어진 변수가 배열인지 확인합니다.
bool is_array ( mixed $var )
var 가 array이면 TRUE, 아니면 FALSE를 반환합니다.
<?php
$yes = array('this', 'is', 'an array');
echo is_array($yes) ? 'Array' : 'not an Array';
echo "\n";
$no = 'this is a string';
echo is_array($no) ? 'Array' : 'not an Array';
?>
http://docs.php.net/manual/kr/function.is-array.php |
|
추천 : 449 |
추천
목록
|
|
|  |
|