Hi, I am new in PHP language. And want to know exact syntax of this function. So can anyone help me. Please tell me the syntax. I am waiting for your reply.
Hi, I am new in PHP language. And want to know exact syntax of this function. So can anyone help me. Please tell me the syntax. I am waiting for your reply.
Hi, strftime() function is used to format a local time/date according to locale settings.
Syntax:
Just change the syntax as you want. Just make use of your book to find out other details.Code:string strftime ( string $format [, int $timestamp = time() ] )
Last edited by Modifier; 21-11-2009 at 12:41 PM.
Hi, PHP uses strftime() function to formats a local time or date according to locale settings. It has following syntax:
Code:strftime(format,timestamp)
Last edited by Zecho; 21-11-2009 at 12:43 PM.
Hi, strftime() function in PHP has following syntax.
Syntax:
Example:Code:string strftime ( string $format [, int $timestamp = time() ] )
The output of the code above could be:Code:<?php echo(strftime("%b %d %Y %X", mktime(20,0,0,11,2,99)).); ?>
Nov 2 1999 20:00:00
Nov 2 1999 19:00:00
Bookmarks