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
Webiny
Component
StdLib
StdLibTrait
jsonEncode
Webiny\Component\StdLib\StdLibTrait::jsonEncode PHP Method
StdLibTrait Trait Documentation
Show file
Open project: Webiny/Framework
jsonEncode()
protected
static
method
protected
static
jsonEncode
(
mixed
$value
,
integer
$options
) :
string
|
boolean
$value
mixed
The value being encoded. Can be any type except a resource. This function only works with UTF-8 encoded data.
$options
integer
return
string
|
boolean
A JSON encoded string on success or FALSE on failure.
protected static function jsonEncode($value, $options = 0) { return json_encode($value, $options); }
StdLibTrait
jsonDecode
jsonEncode
serialize
unserialize