Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Elastica
JSON
PHP Class Elastica\JSON
Afficher le fichier
Open project: ruflin/Elastica
Class Usage Examples
Méthodes publiques
Méthode
Description
parse
(
$args
) :
array
Parse JSON string to an array.
stringify
(
$args
) :
string
Convert input to JSON string with standard options.
Private Methods
Méthode
Description
getJsonLastErrorMsg
( ) :
string
Get Json Last Error.
Method Details
parse()
public
static
méthode
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
Résultat
array
PHP array representation of JSON string
stringify()
public
static
méthode
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
Résultat
string
Valid JSON representation of $input