helpers\BaseJson decode()

decode() public static method

Decodes the given JSON string into a PHP data structure.

public static mixed decode ( $json, $asArray = true )
$json string

The JSON string to be decoded

$asArray boolean

Whether to return objects in terms of associative arrays.

return mixed

The PHP data

throws yii\base\InvalidParamException

if there is any decoding error

doc_Yii
2016-10-30 17:05:26
Comments
Leave a Comment

Please login to continue.