<?php $array = array_fill(0,1000, "ahoj"); $count = 0; $length = 0; foreach($array as $item) { $count += 1; $length += strlen($item); } echo "count: $count, length: $length";
You have javascript disabled. You will not be able to edit any code.