<Var/Array> = The array to put the value into.
<Var/Number> = The array index (element) position for the value.
<Value> = What is to be inserted into the array.
Allows you to set the value of the element of an array.
The array must have previously been allocated the correct number of elements.
You cannot expand the number of elements in an array with this instruction.
Example:
$value = 10
$array.1 [ 5 ] = $value
This will insert the value 10 into array $array.1 at index 5 [ 5 ].
Command Location:
- »» General Commands
- »» Arrays
<Var/Array> [ <Var/Number> ] = <Value>
- »» Arrays