PHP 7.2.0 Alpha 2 Released

Manual do PHP

por:
Mehdi Achour
Friedhelm Betz
Antony Dovgal
Nuno Lopes
Hannes Magnusson
Georg Richter
Damien Seguy
Jakub Vrana
2017-06-22
Editado por: Peter Cowburn
por:
Alessander Pery Lopes Thomaz
Amanda Vale
Anderson Fortaleza
André Luis Ferreira da Silva Bacci
Claudio Pereira
Diogo Galvão
Ernani Joppert Pontes Martins
Fábio Luciano Nogueira de Góis
Felipe Nascimento Silva Pena
Fernando Correa da Conceição
João Prado Maia
Lucas Rocha
Marcelo Pereira Fonseca da Silva
Rafael Jaques
Raphael Melo de Oliveira Bastos Sales
Renato Arruda
Ricardo Miranda Santos
Rodrigo Prado de Jesus
Rogerio Prado de Jesus
Taniel Franklin
Thomas Gonzalez Miranda
Thiago Henrique Pojda
add a note add a note

User Contributed Notes 1 note

up
0
webtechhelp dot org at gmail dot com
1 day ago
Format a local date and time:

<?php
// Prints the day
echo date("l") . "<br>";

// Prints the day, date, month, year, time, AM or PM
echo date("l jS \of F Y h:i:s A") . "<br>";

// Prints October 3, 1975 was on a Friday
echo "Oct 3,1975 was on a ".date("l", mktime(0,0,0,10,3,1975)) . "<br>";

// Use a constant in the format parameter
echo date(DATE_RFC822) . "<br>";

// prints something like: 1975-10-03T00:00:00+00:00
echo date(DATE_ATOM,mktime(0,0,0,10,3,1975));
?>

More details on:
http://webtechhelp.org
To Top