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
Next revisionBoth sides next revision
en:create:questions:random [23.03.2016 15:43] – [Option 3] adminen:create:questions:random [30.11.2016 15:41] leiner
Line 72: Line 72:
   // Array, that saves an image for every group   // Array, that saves an image for every group
   $bilder = array(   $bilder = array(
-    1 => stimulusA2.jpg +    1 => 'stimulusA2.jpg', 
-    2 = stimulusB2.jpg +    2 => 'stimulusB2.jpg', 
-    3 = stimulusC2.jpg+    3 => 'stimulusC2.jpg'
   );   );
   // With the square brackets an element from the array is read   // With the square brackets an element from the array is read
Line 142: Line 142:
 '); ');
 // Create the fitting question ID and show the question using question() // Create the fitting question ID and show the question using question()
-$qstID = 'AB'.sprintf('%02d', $i + 1);  // Question IDs AB01 to AB20 +question(id('AB', $i + 1)); // Question IDs AB01 to AB20
-question($qstID);+
 </code> </code>
  
en/create/questions/random.txt · Last modified: 07.12.2023 07:03 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki