fork download
  1. <?php
  2.  
  3. function createQuestions()
  4. {
  5. $questions = array();
  6.  
  7. $q = new Question;
  8. $q->text = ...
  9. ...
  10. // Кладем вопрос в массив
  11. $questions[] = $q;
  12.  
  13. $q = new Question;
  14. ...
  15.  
  16. return $questions;
  17. }
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 '.' in /home/MMxTBW/prog.php on line 8