Merging feature/charts-structure

This commit is contained in:
xdrm-brackets 2016-05-24 09:19:11 +02:00
commit e576d9a1f6
2 changed files with 1 additions and 33 deletions

View File

@ -89,39 +89,6 @@
/* [4] Test download via AJAX /* [4] Test download via AJAX
=========================================================*/ =========================================================*/
$dates = array(
'01 janv. 2015',
'02 févr. 2015',
'03 mars 2015',
'04 avr. 2015',
'05 mai 2015',
'06 juin 2015',
'07 juil. 2015',
'08 août 2015',
'09 sept. 2015',
'10 nov. 2015',
'11 oct. 2015',
'12 dec. 2015',
);
function correctDates($date){
$date = str_replace('janv.', 'jan.', $date);
$date = str_replace('févr.', 'feb.', $date);
$date = str_replace('mars', 'march', $date);
$date = str_replace('avr.', 'apr.', $date);
$date = str_replace('mai', 'may', $date);
$date = str_replace('juin', 'june', $date);
$date = str_replace('juil.', 'july', $date);
$date = str_replace('août', 'aug.', $date);
return strtotime($date);
}
foreach($dates as $date)
var_dump( date('d/m/Y H:i:s', correctDates($date)) );
$db = new lightdb('phone_db', __ROOT__.'/src/dynamic/'); $db = new lightdb('phone_db', __ROOT__.'/src/dynamic/');
var_dump( array_keys($db->index())); var_dump( array_keys($db->index()));
$db->close(); $db->close();

File diff suppressed because one or more lines are too long