version: 2.1.3







jsonSave

save data in json file, you can pass array|object|json to save it in json file

Parameters

name string the file name you want to data saved in Yes
data string or array or object The data you want to save in file. Yes

Method errors

ErrorNamedescription
name parameter not found parameter name not founded , set it like example
data parameter not found parameter data not founded , set it like example

Method examples

$this->jsonSave(['name'=>'zxc.json','data'=>array()]);
$this->jsonSave(['name'=>'test.json','data'=>"[]"]);

Method alices

There is no alices

Method output :

Boolean