all dates the year php
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:
- config:clear cache:clear
- array key exstis php
- date format with t and z php
- 'cross-env' is not recognized as an internal or external command, laravel
- DB::connection() for php
- <?php echo Date(Y); ?>
- array index exists php
- base64decode php
- echo date('Y-m-d'); python
- PHP Fatal error: Uncaught Error: Call to undefined function curl_init
- find array unique php
- Add “Affected Products” in catalog price rule
- date month in php
- array contains key php
- add redirect php
- check if a string is url or not php
- * @see http://php.net/manual/en/function.date.php
- convert to capital letters php
- datetime php difference in days
- base64 image php
- Bubble Sort in array in php
- created_at date get in y-m-d H:i:s php
- check key in an array
- decode jwt token laravel