Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
SJson
PHP Class SJson
Show file
Open project: hetao29/slightphp
Class Usage Examples
Public Methods
Method
Description
decode
(
string
$str
,
$options
) :
mixed
decode string to json object
encode
(
mixed
$object
,
$options
) :
string
encode object to json
Method Details
decode()
public
static
method
decode string to json object
public
static
decode
(
string
$str
,
$options
) :
mixed
$str
string
return
mixed
object
encode()
public
static
method
encode object to json
public
static
encode
(
mixed
$object
,
$options
) :
string
$object
mixed
return
string
json