- var_dump: documentation ( source)
- strftime: documentation ( source)
- strtotime: documentation ( source)
- extension_loaded: documentation ( source)
- setlocale: documentation ( source)
<?php
// strftime
var_dump(setlocale (LC_TIME, 'fr_FR.utf8','fra'));
var_dump(strftime('%d %B %Y', strtotime('-1 week')));
extension_loaded("intl") or die;
// intl
$date = new IntlDateFormatter(
"fr_FR",
IntlDateFormatter::MEDIUM,
IntlDateFormatter::NONE,
null,
null,
null
);
var_dump($date->format(strtotime('-1 week')));