Use max()
, array_map()
, and strtotime()
.
$max = max(array_map('strtotime', $arr));
echo date('Y-m-j H:i:s', $max); // 2012-06-11 08:30:49
More Related Contents:
- How to sort date array in php?
- Get week number in month from date in PHP?
- PHP order array by date? [duplicate]
- Get date range between two dates excluding weekends
- Get the maximum value from an element in a multidimensional array? [duplicate]
- Find min/max in a two dimensional array
- Sum up array values [closed]
- Is there any array function by which I can get the expected result? [duplicate]
- How to get time difference in minutes in PHP
- Convert a PHP object to an associative array
- PHP in_array() / array_search() odd behaviour
- How to check whether an array is empty using PHP?
- PHP Array to JSON Array using json_encode(); [duplicate]
- How can I check if an array contains a specific value in php?
- Accessing dates in PHP beyond 2038
- PHP list all files in directory [duplicate]
- How to sort a multidimensional array by a certain key?
- How to sort an array of UTF-8 strings?
- How to split a long string without breaking words?
- Make var_dump look pretty [duplicate]
- PHP – Merge two arrays (same-length) into one associative?
- PHP – Convert multidimensional array to 2D array with dot notation keys
- Loop a multidimensional array and only print two specific column values per row
- Group rows in an associative array of associative arrays by column value and preserve the original first level keys
- mysql – INSERT date range into date columns IF dates don’t overlap with existing ones
- Find number which is greater than or equal to N in an array
- php split array into smaller even arrays
- how to change the array key to start from 1 instead of 0 [duplicate]
- Create PHP array from MySQL column
- Recreate original PHP array from print_r output [duplicate]