This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:create:functions:getquestions [24.01.2015 15:46] – [getQuestions()] alexander.ritter | en:create:functions:getquestions [24.01.2015 15:48] (current) – [Examples] alexander.ritter | ||
---|---|---|---|
Line 36: | Line 36: | ||
</ | </ | ||
- | And the following PHP code selects 4 from the questions | + | And the following PHP code selects 4 questions |
<code php> | <code php> | ||
- | // Create the random list only once | + | // Create the random list once only |
if (!isset($questions)) { | if (!isset($questions)) { | ||
$all = getQuestions(' | $all = getQuestions(' |