Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Date in PHP

  1. <?php
  2. $d = date('D : d');
  3. echo $d."<br>";
  4. $d = date('M : m');
  5. echo $d."<br>";
  6. $d = date('Y : y');
  7. echo $d."<br>";
  8. ?>


  1. The output of the code above could be something like this:
  2. Sun : 08
  3. Jul : 07
  4. 2012 : 12