$totalChars = 0; foreach ($books as $book) { $totalChars += strlen($book); }. PHP comes with a built-in array function array_reduce.
確定! 回上一頁