Source : lesson_10_a_build_a_date_string.php |
Résultat |
<?php $current = getdate(); $current_time=$current["hours"]." Heures :".$current["minutes"]." Minutes :". $current["seconds"]." Secondes"; $current_date = $current["mday"] . "/" .$current["mon"]. "/" .$current["year"]; echo "Nous sommes le $current_date <br/>Il est $current_time "; ?>
|
Nous sommes le 22/11/2024 Il est 10 Heures :9 Minutes :29 Secondes
|