Basically I wangted to change any string that look like this 012014
into Janvier 2014
in french.
So Itried this and none of them worked!
date_default_timezone_set('Europe/Paris');
setlocale(LC_TIME, "fr_FR");
$pubdate = date('MY', strtotime('012014'));
echo $pubdate;
Instead it displays me May2014
, is it that it display me the current month and why is that?And how to display it in french?
Much appreciated!