I want to filter my output:
07-02-13 20:08:41 [email protected]
07-02-13 20:09:41 [email protected]
07-02-13 20:21:25 [email protected]
07-02-13 20:56:51 [email protected]
07-02-13 21:42:37 [email protected]
07-02-13 22:09:11 [email protected]
I want to filter my output, so emails there appearing within 2 minutes has to do something. This is my "filter code" so far. But it is not working. What am i doing wrong?
strtotime('-2 minutes"', strtotime(date('d-m-y H:i:s', $filter['created'])
$filter['created']? If it contains timestamp, why are you formating it to ambigous date fromat just to turn it back into timestamp and substract 2 minutes? What is not working? Code you posted does not attempt to filter anything...