함수 array filter()

Jmnote (토론 | 기여)님의 2017년 11월 24일 (금) 21:57 판 (새 문서: 분류: 배열 ==PHP== 분류: PHP <source lang='php'> $arr = ['foo', false, -1, null, '']; print_r( array_filter($arr) ); # Array # ( # [0] => foo # [2] => -1 # ) </...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)


PHP

$arr = ['foo', false, -1, null, ''];
print_r( array_filter($arr) );
# Array
# (
#     [0] => foo
#     [2] => -1
# )
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}