Reader Class

Create object

Utilize the constructor of the Reader class:

$reader = new Reader();


Init the class:

$reader->init(array $optionArray) : self

Get object

Get the object:

$reader->getObject() : ?object

Get array

Get the array:

$reader->getArray() : ?array

Get json

Get the json:

$reader->getJSON() : string

Get xml

Get the xml:

$reader->getXML() : string


load the content from url:

$reader->load() : self

Load json

load the json from url:

$reader->loadJSON() : self

Load xml

load the xml from url:

$reader->loadXML() : self
Edit on GitHub