Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:create:functions:getquestions [13.01.2015 20:39] alexander.ritteren:create:functions:getquestions [24.01.2015 15:48] (current) – [Examples] alexander.ritter
Line 3: Line 3:
 ''array **getQuestions**(string //sectionID//)'' ''array **getQuestions**(string //sectionID//)''
  
-The function ''getQuestions()'' returns a list of all question IDs of a particular section.+The function ''getQuestions()'' returns a list of all question IDs in a particular section.
  
   * //sectionID//\\ The two-figure ID of a section   * //sectionID//\\ The two-figure ID of a section
Line 36: Line 36:
 </code> </code>
  
-And the following PHP code selects 4 from the questions in section "AB" at random and shows these on different pages.+And the following PHP code selects 4 questions from section "AB" at random and shows these on different pages.
  
  
 <code php> <code php>
-// Create the random list only once+// Create the random list once only
 if (!isset($questions)) { if (!isset($questions)) {
   $all = getQuestions('AB');   $all = getQuestions('AB');
en/create/functions/getquestions.txt · Last modified: 24.01.2015 15:48 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki