Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:create:variables [05.02.2015 21:02] – [Use with Urns] alexander.ritteren:create:variables [05.02.2015 21:03] – [PHP Variables] alexander.ritter
Line 85: Line 85:
 ===== PHP Variables ===== ===== PHP Variables =====
  
-In PHP, variables start with a dollar sign, e.g. ''$version''. A value is assigned to the variable with a single equals sign (''=''). This value is compared with another value with a double equals sign (''=='').+In PHP, variables start with a dollar sign, e.g. ''$version''. A value is assigned to the variable by using a single equals sign (''=''). This value is compared with another value by using a double equals sign (''=='').
  
 **Note:** A PHP variable is only valid within a //PHP code// element. It is transient, and therefore will not be stored permanently. If you want to use the variable later on in other PHP code elements, the variable therefore has to be made available by using ''[[:en:create:functions:registervariable|registerVariable()]]''. If the value of the variable is needed for the analysis, it has to be stored in an internal variable by using ''[[:en:create:functions:put|put()]]''. **Note:** A PHP variable is only valid within a //PHP code// element. It is transient, and therefore will not be stored permanently. If you want to use the variable later on in other PHP code elements, the variable therefore has to be made available by using ''[[:en:create:functions:registervariable|registerVariable()]]''. If the value of the variable is needed for the analysis, it has to be stored in an internal variable by using ''[[:en:create:functions:put|put()]]''.
en/create/variables.txt · Last modified: 29.04.2021 20:58 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