curent date 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)$date_input = '2003';
$date_output= date( "Y-m-d", mktime( 0, 0, 0, 1, 1, $date_input ));
//date_output = 2003-01-01
Also in PHP:
- check if an array index exists php
- array reverse array php
- check type of variable php
- array get only the value without duplicate
- Custom Order By in CakePHP
- To print current time which function will use in pphp
- check if string includes substring php
- Allowed memory size of 1610612736 bytes exhausted xampp
- difference between guard and fillable laravel
- console.log phph
- check if string contains specific words inr
- close mysql connection in php
- 500 (internal server error) laravel
- display date time in php
- array_merge(): Expected parameter 1 to be an array, null given at vendor/phpunit/phpunit/phpunit:61
- console.php
- cakephp send mail bcc
- empty laravel cache
- customizing php time format based on location usa europe
- do I have to pass a path in html get request
- delete file using php
- array key sort unique laravel
- add one day to date php
- content-disposition php