| name | language | licence |
|---|---|---|
| PHP : Boucle ecriture dans un fichier XML | PHP | Other |
| PHP : Detection ie6 et ie7 en php | PHP | Other |
| PHP : class mail | PHP | Other |
| PHP : date en php | Other | Other |
| PHP/JS : Expressions régulière | PHP | Other |
| PHP/JS : Utilisation de la classe Ajax_upload | Other | Other |
| PHP/JS : ternaire | PHP | Other |
| PHP/MYSQL : Chaines de caractères echapper avant insertion en base | PHP | Other |
< 1 2 3 4 5 >
language: Other
licence: Other
PHP : date en php
options: view full snippet • send to code collector
<?php
$day_table = array("", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi", "dimanche");
$month_table = array("", "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Decembre");
$today = $day_table[date("N")]." ".date("j")." ".$month_table[date("n")]." ".date("Y");
$hour = date("H:i");
echo "Nous sommes ".$today.", il est ".$hour.", ";
?>



library
html (48)