fork(1) download
  1. <?php
  2.  
  3. $year = array("2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009");
  4. $year_current = "2004"; # output = 2002 2003 (2004) 2005 2006
  5.  
  6.  
  7. foreach ($year as $title) {
  8.  
  9. if ($current < ?start) {
  10. echo $title;
  11. # 2002 2003
  12. }
  13. if ($current == ?) {
  14. echo "(" . $title . ")";
  15. # (2004)
  16. }
  17. if ($current > ?konec) {
  18. echo $title;
  19. # 2005 2006
  20.  
  21. }
  22. }
  23.  
  24.  
  25. /*
  26. current
  27. 2000 = (2000) 2001 2002 2003 2004
  28. 2001 = 2000 (2001) 2002 2003 2004
  29. 2002 = 2000 2001 (2002) 2003 2004
  30. 2003 = 2001 2002 (2003) 2004 2005
  31. 2004 = 2002 2003 (2004) 2005 2006
  32. 2005 = 2003 2004 (2005) 2006 2007
  33. 2006 = 2004 2005 (2006) 2007 2008
  34. 2007 = 2005 2006 (2007) 2008 2009
  35. 2008 = 2006 2007 2006 (2008) 2009
  36. 2009 = 2006 2007 2006 2008 (2009)
  37. */
  38.  
Runtime error #stdin #stdout #stderr 0s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '?' in /home/tiqAHf/prog.php on line 9