How to get Day Name from date in PHP?
Jan 04, 2021
Hi Guys,
In this example,I will learn you how to get Day name from date using php.you can easy and simply get Day name from date using php.
The Day number can be converted into a Day name by using php.this tutorial will give you example get Day name from date using php.
Example:
<?php
echo date("D", strtotime('2016-05-17 16:41:51'));
?>
Output:
Tue
It will help you...
- How To Use Php Conditional Statement Example
- How to Check if String Contains Regex in PHP?
- PHP Array_column() Function Example
- PHP Generate List of Random Numbers Between 0 and 100 Example
- How to User Login with Facebook in PHP?
- How to Explode Every Character into Array Using PHP Example?
- PHP Form Validation Tutorial
- PHP Convert XML to JSON Example