Table of contents
Used for passing Arrays, for example when issuing requests or receiving response data.
The value may be one of the following types:
Constructor Summary
| Constructor | Description |
| GSArray() | Empty constructor |
| GSArray(string $json) | Construct a GSArray from a JSON string. Throws an Exception if unable to parse the JSON string. |
Method Summary
| Return | Method | Description |
| void | add(mixed $value) | Adds a value to the array. |
| integer | getInt(integer $index) | Type specific methods for retrieving value by index. |
| long | getLong(integer $index) | |
| double | getDouble(integer $index) | |
| Boolean | getBool(integer $index) | |
| string | getString(integer $index) | |
| GSObject | getObject(integer $index) | |
| GSArray | getArray(integer $index) | |
| integer | length() | Returns the array's length. |
| string | toJsonString() | Returns the array's content as a JSON string. |
| string | toString() | Returns the array's content as a JSON string. |

Comments