CopyPastor

Detecting plagiarism made easy.

Score: 0.9992160374118436; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-09-18
by Bhavik Kalariya

Original Post

Original - Posted on 2012-06-13
by flowfree



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Use [`max()`](http://php.net/max), [`array_map()`](http://php.net/array_map), and [`strtotime()`](http://php.net/strtotime).
$max = max(array_map('strtotime', $arr)); echo date('Y-m-j H:i:s', $max); // 2019-09-18 10:07:34

Use [`max()`](http://php.net/max), [`array_map()`](http://php.net/array_map), and [`strtotime()`](http://php.net/strtotime).
$max = max(array_map('strtotime', $arr)); echo date('Y-m-j H:i:s', $max); // 2012-06-11 08:30:49


        
Present in both answers; Present only in the new answer; Present only in the old answer;