PHP 클래스 Thenbsp\Wechat\Bridge\Serializer

파일 보기 프로젝트 열기: thenbsp/wechat 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

isJSON() 공개 정적인 메소드

check is json string
public static isJSON ( $data )

isXML() 공개 정적인 메소드

check is xml string
public static isXML ( $data )

jsonDecode() 공개 정적인 메소드

json decode
public static jsonDecode ( $data, array $context = [] )
$context array

jsonEncode() 공개 정적인 메소드

json encode
public static jsonEncode ( $data, array $context = [] )
$context array

parse() 공개 정적인 메소드

xml/json to array
public static parse ( $string )

xmlDecode() 공개 정적인 메소드

xml decode
public static xmlDecode ( $data, array $context = [] )
$context array

xmlEncode() 공개 정적인 메소드

xml encode
public static xmlEncode ( $data, array $context = [] )
$context array