date now function in php
$today = date("F j, Y, g:i a"); // October 30, 2019, 10:42 pm
$today = date("D M j G:i:s T Y"); // Wed Oct 30 22:42:18 UTC 2019
$today = date("Y-m-d H:i:s"); // 2019-10-30 22:42:18(MySQL DATETIME format)// 1. create a date instance
$date = new DateTime;
// 2. set the date using the setDate(year, month, date) method on the
// $date instance
$date->setDate(1999,02,19);
Also in PHP:
- create path php
- console log php to javascript
- decode base64 php
- create new laravel project composer
- cache DB table laravel
- find index of occurrence php
- PHP Numbers
- blade Keep input values after failed validation
- Date(y, m, 0)
- check if string contains only one word
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767
- General error: 1215 Cannot add foreign key constraint laravel
- check if key exist in array php
- command working in terminal but working from code php
- don't show warning php
- domainn of page php
- date time format 12 hour am pm php
- curl php example
- detecting right click on windows
- carbon date from format
- composer require guzzlehttp/guzzle
- date php D
- Class 'App\Widgets\BaseDimmer' not found \vendor\tcg\voyager\resources\views\dimmers.blade.php)
- all files in a folder to array php