- array_map: documentation ( source)
- print_r: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
- range: documentation ( source)
<?php
$from = '2014-06-26 07:53:26';
$to = '2014-06-27 07:52:46';
$diff_stamp = strtotime($to) - strtotime($from);
$range = range(strtotime($from), strtotime($to), $diff_stamp/4);
$range = array_map(function($a){return date('Y-m-d H:i:s', $a);}, $range);
print_r($range);