Code Snippets Php

$now = getdate( );
print "$now[hours]:$now[minutes]:$now[seconds]";
?>