<?php function createQuestions() { $q = new Question; $q->text = ... ... // Кладем вопрос в массив $questions[] = $q; $q = new Question; ... return $questions; }
Standard input is empty
Standard output is empty
PHP Parse error: syntax error, unexpected '.' in /home/MMxTBW/prog.php on line 8