fetch time 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)Return the current time as a Unix timestamp, then format it to a date:
<?php
/* Unix Timestamp */
$timestamp = time();
echo $timestamp . "<br>";
echo date("d/m/Y", $timestamp);
?>
Also in PHP:
- string convet to int php
- cacert file_get_contents openssl
- auto generate password in php on button click
- fetch data based on month and year in laravel
- error_reporting function not working
- disable base64 decode php.ini
- collection methods laravel
- add one day to date php
- <?php header('Location: /index');
- create folder php code
- check array for duplicates php
- check of string is present in string using php
- cannot use font awesome in php mvc
- Use Laravel for server
- No match for argument: phpmyadmin yum
- array foreach php
- Basic features of Exception Handling php
- debug php
- _e in wordpress
- Connecting to Database sql
- create laravel project version 5.8
- array key exists php after submit
- clearcache artisan
- convert time php in timestamp