SyntaxFix
Write A Post
Hire A Developer
Questions
Here's another solution not using date(). not so smart:)
$var = '20/04/2012'; echo implode("-", array_reverse(explode("/", $var)));