note 108513 deleted from function.date by peehaa
| From: | peehaa@php.net | Date: | Fri, 06 Jan 2017 15:56:06 +0000 |
| Subject: | note 108513 deleted from function.date by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208708@lists.php.net to get a copy of this message | ||
Note Submitter: nathan
----
<?php
/* the following variables are set to appropriate
characters recognized by php version 5 that
will get the date. To display the date, we have
to use 'echo' or 'print' to send the variable
data to the browser
*/
$day=date("l");
$date=date("j");
$suffix=date("S");
$month=date("F");
$year=date("Y");
echo $day . ", " . $month . " " . $date . $suffix . ", " . $year;
?>
rudimentary, simple way to due things, but it gets the job done for someone learning more on the
subject.