Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 506 Bytes

load.md

File metadata and controls

19 lines (13 loc) · 506 Bytes

load()

Loads the inputted Javascript as a document.

$doc = new \hexydec\jslite\jslite();
$doc->load($js, &$error = null);

Arguments

Parameter Type Description
$js String The Javascript to be parsed into the object
$error &?String A reference to any user error that is generated

Returns

A boolean indicating whether the Javascript was parsed successfully.