← 문제 목록
중급
PHP
50P
array_map과 null
다음 코드에서 예상치 못한 결과의 원인은?
PHP
<?php
$prices = ['100', '200', null, '300'];
$total = array_sum(array_map('intval', $prices));
echo $total;
1명 풀이 · 정답률 0%