date( w ) php
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
$today = date("m.d.y"); // 03.10.01
$today = date("j, n, Y"); // 10, 3, 2001
$today = date("Ymd"); // 20010310
$today = date('h-i-s, j-m-y, it is w Day'); // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
$today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day (10ème jour du mois).
$today = date("D M j G:i:s T Y"); // Sat Mar 10 17:16:18 MST 2001
$today = date('H:m:s \m \e\s\t\ \l\e\ \m\o\i\s'); // 17:03:18 m est le mois
$today = date("H:i:s"); // 17:16:18
$today = date("Y-m-d H:i:s"); // 2001-03-10 17:16:18 (le format DATETIME de MySQL)<?php
// prints something like: Wednesday the 15th
echo date('l \t\h\e jS');
?>
gmdate() - Format a GMT/UTC date/time
idate() - Format a local time/date as integer
getdate() - Get date/time information
getlastmod() - Gets time of last page modification
mktime() - Get Unix timestamp for a date
strftime() - Format a local time/date according to locale settings
time() - Return current Unix timestamp
DateTimeImmutable::__construct() - Returns new DateTimeImmutable object
Predefined DateTime Constants
Also in PHP:
- enable the cache mechanisms laravel
- file_get_contents to base64
- "Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52"
- convert string to timestamp php
- check is home page
- eamble php erorors
- artisan composer install
- This behaviour is (currently) not supported by Doctrine 2
- change datetime format from Y-m-d h:i:s to d-m-Y in php
- check typo of variable php
- convert timestamp to date format php
- array unique php index not getting organised
- array push object php
- cut pice of text in laravel
- add today name to website by php
- Jan 5, 2021 15:37:25 time format php
- contains php
- alpha numeric to upper case in php
- add shortcode in short description
- create custom pagination in laravel 7 for api
- Notice: Undefined variable: _SESSION in C:\xampp\htdocs\practice\header.php on line 7
- check php for errors
- contains in php string
- artisan laravel command create project