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:functions:registervariable [24.12.2014 17:23] – [Example 3] alexander.ritteren:create:functions:registervariable [28.12.2014 17:21] – [registerVariable()] alexander.ritter
Line 3: Line 3:
 ''void **registerVariable**(string //variableName//)'' ''void **registerVariable**(string //variableName//)''
  
-In PHP, a variable is normally only valid within __one__ PHP code element. By using ''registerVariable()'' , a variable can be made available for all following PHP code elements.  +In PHP, a variable is normally only valid within __one__ PHP code element. By using ''registerVariable()'', a variable can be made available for all following PHP code elements.  
  
   * //variableName//\\ A string (in quotation marks) with the name of the variable. This cannot be the variable itself (e.g. ''$item''), a string with the name of the variable (e.g. 'item').   * //variableName//\\ A string (in quotation marks) with the name of the variable. This cannot be the variable itself (e.g. ''$item''), a string with the name of the variable (e.g. 'item').
Line 9: Line 9:
 ===== Example 1 ===== ===== Example 1 =====
  
-In the following example, three items are taken from the items in question "AB01" on page 1. Following this, the question is asked with these three items -- and, on a later page, question "ABO2" is asked with these exact same three items.+In the following example, on page 1, three items are taken from the items in question "AB01". Following this, the question is asked with these three items -- and, on a later page, question "ABO2" is asked with these exact same three items.
  
  
en/create/functions/registervariable.txt · Last modified: 21.04.2024 20:29 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