Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
KamranAhmed
Smasher
JsonResponse
PHP Class KamranAhmed\Smasher\JsonResponse
Helps encoding and decoding arrays to JSON
Inheritance:
implements
KamranAhmed\Smasher\Contracts\ResponseContract
Mostrar archivo
Open project: kamranahmedse/smasher
Public Methods
Method
Description
decode
(
string
$response
) :
array
Decodes the passed string and creates array from it
encode
(
array
$data
) :
string
Formats the passed data/array to json
Method Details
decode()
public
method
Decodes the passed string and creates array from it
public
decode
(
string
$response
) :
array
$response
string
The existing response which is to be decoded to array
return
array
encode()
public
method
Formats the passed data/array to json
public
encode
(
array
$data
) :
string
$data
array
The data which is to be encoded
return
string