Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
en:create:functions:registervariable [24.12.2014 17:23] – [Example 1] alexander.ritter | en:create:functions:registervariable [28.12.2014 17:21] – [registerVariable()] alexander.ritter |
---|
''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'). |