In this tutorial you will learn how find day name in a PHP web application.
PHP date day name
In this tutorial you will learn how find day name in a PHP web application. The code of "php-date-day-name.php" given below:
<?php $currentDate=date('Y-m-d h:i:s'); echo "Current date : ".$currentDate; echo "<br>"; echo "Day name : "; echo date("l"); ?>
Output :
When run "php-date-day-name.php" display output as :
[ 0 ] Comments