- 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"
)
);
$count = array();
foreach($arrays as $simple)
{
$count []= $simple['location'];
}
var_dump($count['Breakwater']);