Js
in package
JS helpers.
Table of Contents
Methods
- encode() : string
- Encode an array to a JavaScript expression.
Methods
encode()
Encode an array to a JavaScript expression.
public
static encode(array<string|int, mixed> $data[, bool $freeze = true ]) : string
This processes JsExpression objects.
Parameters
- $data : array<string|int, mixed>
- $freeze : bool = true