PHP Knowledge

  • what is PHP

  • What is PHP class
  • Smarty PHP
  • PHP Calendar

  • PHP delete
  • PHP count

  • PHP Directory
  • php echo
  • php exec
  • PHP explode
  • PHP fopen

  • PHP Form
  • PHP get

  • PHP If
  • PHP list
  • php login
  • PHP LOOP
  • PHP Random
  • PHP Redirect
  • PHP replace
  • PHP session
  • PHP sort
  • PHP split
  • php substr
  • PHP Syntax
  • PHP time

  • PHP upload
  • php URL
  • PHP version
  • PHP Cookie
  • PHP Global
  • php LDAP
  • PHP list
  • php strip
  • PHP template
  • php PEAR
  • PHP md5
  • PHP ini
  • PHP FTP
  • More others

    Javascript
    CSS
    PHP

     

    PHP time


    PHP time() function

     

    PHP time Definition and Usage

    The time() function returns the current time as a Unix timestamp (the number of seconds since January 1 1970 00:00:00 GMT).

    PHP time Syntax

    time(void)

    Parameter

    Description

    void

    Optional.

    PHP time Tips and Notes

    Note: Calling this function is identical to calling mktime() with no parameters, or calling date("U").

    PHP time Example

    <?php $t=time();

    echo($t . "<br />");

    echo(date("D F d Y",$t)); ?>

    The output of the code above could be:

    1138618081 Mon January 30 2006

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • Javascript |