d-m-Y H:i
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:
- HOW TO FIND TYPE OF VARIABLE PHP
- Method Illuminate\Database\Eloquent\Collection::save does not exist.
- detect right click html
- artisan config cache clear
- Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://vtl-lab.com/VN/crecc-cms/api/member/register.json. (Reason: CORS request did not succeed).
- array in array php foreach example
- "\" strpos
- array get only the value without duplicate
- create project in laravel 8 command
- check array has key data
- after validate credential header is not redirect to another page in php in live server
- composer create-project –-prefer-dist laravel/laravel install "5.8"
- check array key exists php js
- check if array key is empty php
- How to display MySQL data dynamically using jQuery and PHP
- current date time in php
- descargar laravel
- PHP terminal Console in Your Browser
- datetime format
- .lenght en php string
- display only errors php
- base64 decode in php
- create migration laravel
- char to uppercase php