Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Elastica
JSON
PHP Class Elastica\JSON
Datei anzeigen
Open project: ruflin/Elastica
Class Usage Examples
Public Methods
Method
Description
parse
(
$args
) :
array
Parse JSON string to an array.
stringify
(
$args
) :
string
Convert input to JSON string with standard options.
Private Methods
Method
Description
getJsonLastErrorMsg
( ) :
string
Get Json Last Error.
Method Details
parse()
public
static
method
Parse JSON string to an array.
See link:
http://php.net/manual/en/function.json-decode.php
See link:
http://php.net/manual/en/function.json-last-error.php
public
static
parse
(
$args
) :
array
return
array
PHP array representation of JSON string
stringify()
public
static
method
Convert input to JSON string with standard options.
See link:
http://php.net/manual/en/function.json-encode.php
See link:
http://php.net/manual/en/function.json-last-error.php
public
static
stringify
(
$args
) :
string
return
string
Valid JSON representation of $input