- date: documentation ( source)
- array_keys: documentation ( source)
- strtotime: documentation ( source)
- current: documentation ( source)
<?php
$data = '20/04/2013';
echo "\n";
echo date('Y-m-d', strtotime($data));
echo "<br />";
$data = '04/20/2013';
echo date('Y-m-d', strtotime($data));
echo "<br />";
$data = '2013-10-12';
echo date('d/m/Y', strtotime($data));
$array = array('HTML' => 'DB');
echo current(array_keys($array));