PHP: How can I get the values, with 3 minutes each element, out of my array? -
how can values out of array if there within 3 minutes apart? array, $array1
array ( [0] => array ( [id] => 47523 [date] => 12-02-13 14:36:32 ) [1] => array ( [id] => 65454 [date] => 12-02-13 14:36:32 ) [2] => array ( [id] => 47523 [date] => 12-02-13 13:56:48 ) [3] => array ( [id] => 38639 [date] => 12-02-13 13:56:48 ) [4] => array ( [id] => 38639 [date] => 12-02-13 13:08:51 ) [5] => array ( [id] => 38639 [date] => 12-02-13 13:07:43 ) [6] => array ( [id] => 38639 [date] => 12-02-13 13:09:43 ) )
how can output
array ( [0] => array ( [id] => 38639 [date] => 12-02-13 13:08:51 ) [1] => array ( [id] => 38639 [date] => 12-02-13 13:07:43 ) [2] => array ( [id] => 38639 [date] => 12-02-13 13:09:43 ) )
use strtotime timestamp, , compare timestamps.
php arrays
No comments:
Post a Comment