Try something like below
<?php
$array= array(
array("thedate"=>"2016-03-05","theadults"=>10),
array("thedate"=>"2016-03-05","theadults"=>1),
array("thedate"=>"2016-03-06","theadults"=>1),
array("thedate"=>"2016-03-07","theadults"=>1),
array("thedate"=>"2016-03-05","theadults"=>1),
array("thedate"=>"2016-03-07","theadults"=>1),
array("thedate"=>"2016-03-06","theadults"=>1)
);
print_r($array);
$new = array();
for($i=0;$i < count($array);$i++)
{
$index = -1;
for($j=0;$j<count($new);$j++)
{
if($array[$i]['thedate'] == $new[$j]['thedate'])
{
$index = $j;
breck;
}
}
if($index == -1)
{
array_push($new, $array[$i]);
}
else
{
$new[$index]['theadults'] += $array[$i]['theadults'];
}
}
echo "<hr>";
print_r($new);