date("d"); //Day of month: 09
date("j"); //Day of month without 0: 9
date("jS"): //Day of month with "th": 21th
date("D"): //Day of week abbreviated: Thu
date("l"): //Day of week: Thursday
date("z"); //Day of the year: 110
date("t"); //Number of days in given month: 30
date("m"); //Month number: 04
date("n"); //Month number without 0: 4
date("M"); //Month name abbreviated: Apr
date("F"); //Month name: April
date("Y"); //Year: 2022
date("y"); //Last 2 digits of year: 22
date("o"); //ISO Year number: 2022
date("h"); //Hour (12 fomrat): 02
date("H"); //Hour (24 fomrat): 14
date("g"); //Hour without 0 (12 fomrat): 2
date("G"); //Hour without 0 (24 fomrat): 14
date("i"); //Minutes: 29
date("s"); //Seconds: 24
date("u"); //Microseconds: 33
date("a"); //am or pm
date("A"); //AM or PM
date("e"); //Timezone identifier: UTC
Code Example |
---|
Php :: php radians to degrees |
Php :: php static variable |
:: |
Php :: Session/Session.php error codeigniter 3 |
Php :: url segment in laravel |
:: - in php |
Php :: |
Php :: autoloader php |
Php :: |
Php :: |
Php :: create database in php |
Php :: how to make a child theme in wordpress |
Php :: update query laravel |
Php :: php functions parameters |
Php :: php image rotate upload |
Php :: laravel add package without updating |
Php :: wordpress use jquery in plugin |
Php :: wordpress get uploads images url |
Php :: |
Php :: call api with php |
Php :: PHP trim — Strip whitespace (or other characters) from the beginning and end of a string |
Php :: switch between php version ubuntu |
Php :: php curl detect 404 |
Php :: laravel copy data |
Php :: laravel collection to json |
Php :: The specified module could not be found php |
Php :: |
Php :: convert collection to array laravel |
:: database, counts |
Php :: PHP Ternary Operator With Elseif Example |