set



Function: set() / =

Assigns a value to a variable.

Syntax

  1. set(variable, value)
  2. variable=value
ArgumentTypeDescription
variableVariableName of the variable
valueAnyValue to be assigned to the variable

Examples

set($colour, "brown")

Sets the variable $colour the value "brown".


$colour = "brown"

Sets the variable $colour the value "brown".

See Also