fork download
  1. <?php
  2. $d2 = new DateTime::createFromFormat("%d-%m-%Y", "11-12-2013");
  3. //$d = $d2->format('d');
  4.  
  5. //echo $d;
Runtime error #stdin #stdout #stderr 0.01s 20592KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'createFromFormat' (T_STRING), expecting variable (T_VARIABLE) or '$' in /home/gfYvPZ/prog.php on line 2