date('F')
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";
}$dateTime = new \DateTime();
/**
* You can get the string by using format
*/
$dateTime->format('Y-m-d H:i:s');
Also in PHP:
- Title
- creating seeder laravel
- Category
- PHP
- Title
- clear server cache laravel
- Category
- PHP
- Title
- advanaced layout builder enfold custom post type
- Category
- PHP
- Title
- find string into string
- Category
- PHP
- Title
- Illuminate\Contracts\Container\BindingResolutionException Target class [HomeController] does not exist.
- Category
- PHP
- Title
- Fixes duplicate arrays to show a single character. php
- Category
- PHP
- Title
- Class 'App\Http\Controllers\Admin\Route' not found
- Category
- PHP
- Title
- $_redirect() php
- Category
- PHP
- Title
- CONVERT STRING TO DECIMAL php
- Category
- PHP
- Title
- create an email addresses php
- Category
- PHP
- Title
- display_errors in php.ini
- Category
- PHP
- Title
- create new authentication middleware laravel
- Category
- PHP
- Title
- disallow search engines
- Category
- PHP
- Title
- date('F')
- Category
- PHP
- Title
- How I can disable update at in eloquent
- Category
- PHP
- Title
- Variable "$id" is not defined by operation "GetPost".
- Category
- PHP
- Title
- core php mail function without phpmailer
- Category
- PHP
- Title
- TRANSACTON LARAVEL QUERY BUILDER
- Category
- PHP
- Title
- eloquent disable updated_at
- Category
- PHP
- Title
- data:image/png;base64 php
- Category
- PHP
- Title
- command laravel for php artisan make :auth
- Category
- PHP
- Title
- CODE PPHP
- Category
- PHP
- Title
- 150 charachter display only php
- Category
- PHP
- Title
- enable error reporting on a page php
- Category
- PHP