fork(1) download
  1. <?php
  2.  
  3. // your code goes here
  4. test("d-m-y");
  5. test("y-m-d");
  6. test("d-m-Y");
  7.  
  8. function test( $format) {
  9. printf( "%s\t-\t%s\n", $format, date( $format));
  10. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
d-m-y	-	03-07-14
y-m-d	-	14-07-03
d-m-Y	-	03-07-2014