Example altered to not show leading zero.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@247571 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2007-12-04 09:39:57 +00:00
parent cbbc8d0495
commit a278f3a9d3

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.41 $ -->
<!-- $Revision: 1.42 $ -->
<refentry xml:id="function.date" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>date</refname>
@ -369,8 +369,8 @@ date_default_timezone_set('UTC');
// Prints something like: Monday
echo date("l");
// Prints something like: Monday 15th of August 2005 03:12:46 PM
echo date('l dS \of F Y h:i:s A');
// Prints something like: Monday 8th of August 2005 03:12:46 PM
echo date('l jS \of F Y h:i:s A');
// Prints: July 1, 2000 is on a Saturday
echo "July 1, 2000 is on a " . date("l", mktime(0, 0, 0, 7, 1, 2000));