Class GSArray (PHP)

Last modified 11:42, 15 Sep 2014

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.
Page statistics
616 view(s) and 1 edit(s)
Social share
Share this page?


This page has no custom tags.
This page has no classifications.


You must to post a comment.