array
array
Function
Convert the value to an array.
Syntax
array(value)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| value | Any | No | None | The value to convert. |
Return value
| Type | Description |
|---|---|
| Array | Returns an array value. |
Example
result = array('BT') // Output: ["B","T"] print result
Notes
- The string will be split into a character array.
- Object is converted to an array of values; Null, Empty, or no parameters returns an empty array.