current date and time 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-01check here link: http://www.eltcalendar.com/stuff/datemysqlphp.html
Also in PHP:
- check if word belongs in string
- date("l",$date) php
- composer command to install laravel
- array push object php
- console data from php to jquery console
- error code php
- convert touppercase php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://D:/Program Files/Composer - PHP/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
- 'PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 282624 bytes)
- 500 error code laravel
- create a directory in php if not exists
- autoload.php
- check string length php
- date("G"); timezone
- Create a function that converts string to lowercase
- encode decode in php
- create laravel project without template
- Difference in days of two dates in php
- date("h:i:s")
- eloquent get query log
- config mail php
- create new laravel project using composer
- Geoip php
- cache;clear laravel