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 3/4/2025 Il est 20 Heures :31 Minutes :11 Secondes
|