Method | Description | |
---|---|---|
isJSON ( $data ) | check is json string | |
isXML ( $data ) | check is xml string | |
jsonDecode ( $data, array $context = [] ) | json decode | |
jsonEncode ( $data, array $context = [] ) | json encode | |
parse ( $string ) | xml/json to array | |
xmlDecode ( $data, array $context = [] ) | xml decode | |
xmlEncode ( $data, array $context = [] ) | xml encode |
public static jsonDecode ( $data, array $context = [] ) | ||
$context | array |
public static jsonEncode ( $data, array $context = [] ) | ||
$context | array |