class json_response

JSON class

Methods

send(array $data, bool $exit = true)

Send the data to the client and exit the script.

Details

at line 27
send(array $data, bool $exit = true)

Send the data to the client and exit the script.

Parameters

array $data

Any additional data to send.

bool $exit

Will exit the script if true.