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:array [09.11.2014 12:40] alexander.ritteren:create:array [09.11.2014 15:18] alexander.ritter
Line 1: Line 1:
 ====== Introduction to Arrays ====== ====== Introduction to Arrays ======
  
-Arrays are an extremely useful tool in PHP. They are predominately used when filters, rotation, or analysis cannot be carried out by using standard functions. You can find concrete examples of the PHP code used in their respective chapters, e.g. [[:en:create:rotation|Rotation]], [[:en:create:points|Count Points for Answers]], [[:en:create:filter-items|Use Selected Items Another Question]].+Arrays are an extremely useful tool in PHP. They are predominately used when filters, rotation, or analysis cannot be carried out by using standard functions. You can find concrete examples of the PHP code used in their respective chapters, e.g. [[:en:create:rotation|Rotation]], [[:en:create:points|Count Points for Answers]], [[:en:create:filter-items|Use Selected Items In Another Question]].
  
 ===== Arrays ===== ===== Arrays =====
Line 30: Line 30:
 The example code generates the following output in the questionnaire: The example code generates the following output in the questionnaire:
  
-  length of array: 3 +  Length of array: 3 
-  element with index 0: one +  Entry with index 0: one 
-  element with index 2: three+  Entry with index 2: three
      
 **Tip:** Normally, you cannot see directly what was saved in an array. Use the ''debug()'' function in order to view this. If you start the questionnaire in debug mode (yellow arrow {{:button.debug.gif?nolink|button to start debug mode}}), ''debug()'' then generates a visual output. **Tip:** Normally, you cannot see directly what was saved in an array. Use the ''debug()'' function in order to view this. If you start the questionnaire in debug mode (yellow arrow {{:button.debug.gif?nolink|button to start debug mode}}), ''debug()'' then generates a visual output.
en/create/array.txt · Last modified: 18.11.2020 17:30 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki