echo today 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)<?php
echo date("F j, Y, g:i a")."<br>"; // March 10, 2001, 5:16 pm
echo date("m.d.y")."<br>"; // 03.10.01
echo date("j, n, Y")."<br>"; // 10, 3, 2001
echo date("Ymd")."<br>"; // 20010310
echo date('h-i-s, j-m-y, it is w Day')."<br>"; // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
echo date('\i\t \i\s \t\h\e jS \d\a\y.')."<br>"; // it is the 10th day.
echo date("D M j G:i:s T Y")."<br>"; // Sat Mar 10 17:16:18 MST 2001
echo date('H:m:s \m \i\s\ \m\o\n\t\h')."<br>"; // 17:03:18 m is month
echo date("H:i:s")."<br>"; // 17:16:18
echo date("Y-m-d H:i:s")."<br>"; // 2001-03-10 17:16:18 (the MySQL DATETIME format)
Also in PHP:
- $this
- 12 digit alphanumeric random number generator php
- change time format php
- date format Y-m-d H:i:s
- doing validation in image laravel
- @ in php db connect
- Laravel store multiple files
- capitalize all letters php
- explain Y-m-d H:i:s.u
- all words capital php
- custom rule laravel validation
- calculate total time from start and end datetime in php
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". You are running 7.2.33.
- ErrorException without try catch
- file_get_contents timeout
- php convert to int
- echo console.log
- check where key in associative array have a value
- create laravel v 6.8
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t oo long; max key length is 767 bytes
- base_64 decode using php code
- catch get error php
- @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js`
- access PHP error log