Json::encode()
Converts an array to an encoded JSON string
Json::encode(mixed $data): string
Parameters
| Name | Type | Default |
|---|---|---|
| $data * | mixed |
– |
Return type
string
Converts an array to an encoded JSON string
Json::encode(mixed $data): string
| Name | Type | Default |
|---|---|---|
| $data * | mixed |
– |
string