목록Language/PHP (1)
J.BF Story
[PHP] array_filter을 통해 배열 요소 필터링
PHP 내장 함수인 array_filter을 통해 조건에 부합하는 배열 요소만 필터링할 수 있다. 공식 문서 PHP: array_filter - Manual Depending on the intended meanings of your "empty" array values, e.g., null and empty string, vs. an integer 0 or a boolean false, be mindful of the result of different filters. null, 'nullstring' => '', 'intzero' => 0, 'stringzero' => '0', 'false' => www.php.net 다음과 같은 방법으로 콜백함수와 모드를 통해 필터링할 수 있다. 명명 필터 함수 사..
Language/PHP
2022. 7. 9. 23:57