Printing A Formatted Time String With Other Text

 
<?
print 'strftime() says: ';
print strftime('Today is %m/%d/%y and the time is %I:%M:%S');
print "\n";
print 'date() says: ';
print 'Today is ' . date('m/d/y') . ' and the time is ' . date('h:i:s');
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.