date funciton
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:
- ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! Considering conflict mpm_worker for mpm_prefork: ERROR: Could not enable dependency mpm_prefork for php7.2, aborting
- date("U") php
- disable timestamps for a table
- 2 days in php
- create seede for table in laravel
- check string exist in php
- console log with php on form sent
- find array duplicates in two arrays php
- elementor hide button if input empty
- determine length of stirng php
- SET CURRENT DATE TIME IN PHP'
- filer validation in laravel
- executar comando linux php
- error e all php
- base64 to string pp
- check if character in string php
- artisan route:list
- command to install php5.4 in ubuntu 18.04
- check var type php
- blade php code
- display error message in php
- array to string separated by comma php
- What is a Regular Expression in php
- create database seeder in laravel