Php Programming Code Examples Php > Code Snippets Code Examples Display the time Display the time <?php $now = getdate( ); print "$now[hours]:$now[minutes]:$now[seconds]"; ?>