- var_dump: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$arr = [['dt' => 1523728800], ['dt' => 1523739600], ['dt' => 1528739600]];
$daystart = strtotime(date("Y-m-d 00:00:00"));
$dayend = strtotime(date("Y-m-d 23:59:59"));
Foreach($arr as $val){
If($val['dt'] >= $daystart && $val['dt'] <= $dayend){
$res[] = $val;
}
}
Var_dump($res);