The "array_read" Function

Syntax

array_read(string);
ArgumentTypeDescription
stringstringA previously-encoded string to decode as an array

Description

Takes a string encoded with array_write and returns the contents as a 1D or 2D array.

This script also accepts strings encoded with ds_grid_write and can be used to convert ds_grids to arrays.

Example

my_array = array_read(str_array);