dates phpp
date('w'); //gets day of week as number(0=sunday,1=monday...,6=sat)
//note:returns 0 through 6 but as string so to check if monday do this:
if(date('w') == 1){
echo "its monday baby";
}
Also in PHP:
- count number of char in a string php
- <?php echo Date(Y); ?>
- date( c time()) php
- add 15 days to date in loop php
- find ip address with php
- create laravel project version 5.8
- Difference between echo and print statement in php
- Throw new error php
- fetch values and display in bar chart php mysql
- /phpspreadsheet 1.15.0 requires ext-dom * centos
- 500 server error laravel handle
- customizing php time format based on location usa europe
- convert xml file to array php
- PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Eav\Model\Attribute\Data\Text::validateLength() must be of the type string, null given
- does php reverse array function
- check composer version php
- redirect php file
- file upload permission in php
- add no of days to date php
- $_Server php
- datetformat php
- date and time function php
- DB Seeder
- associative array rev in php