- var_dump: documentation ( source)
<?php
$arrays = array (
0 => array(
"location" => "Breakwater",
"bsid" => "105c"
),
1 => array(
"location" => "Breakwater",
"bsid" => "105c"
),
2 => array(
"location" => "Breakwater",
"bsid" => "105c"
),
3 => array(
"location" => "Whateverelse",
"bsid" => "105c"
)
);
foreach ($arrays as $type) {
$count+= count($type);
}
var_dump($count);