class sanitizer

JSON sanitizer class

Methods

static array
sanitize(array $data)

Sanitize json data

static array
decode(string $json)

Decode and sanitize json data

Details

at line 32
static array sanitize(array $data)

Sanitize json data

Parameters

array $data

Data to sanitize

Return Value

array

Sanitized data

at line 54
static array decode(string $json)

Decode and sanitize json data

Parameters

string $json

JSON data string

Return Value

array

Data array