V8Js::executeString
(PECL v8js >= 0.1.0)
V8Js::executeString — Execute a string as Javascript code
Description
public V8Js::executeString(string
$script, string $identifier = "V8Js::executeString()", int $flags = V8Js::FLAG_NONE): mixedCompiles and executes the string passed with script as Javascript code.
Parameters
scriptThe code string to be executed.
identifierIdentifier string for the executed code. Used for debugging.
flagsExecution flags. This value must be one of the
V8Js::FLAG_*constants, defaulting toV8Js::FLAG_NONE.V8Js::FLAG_NONE: no flagsV8Js::FLAG_FORCE_ARRAY: forces all Javascript objects passed to PHP to be associative arrays
Return Values
Returns the last variable instantiated in the Javascript code converted to matching PHP variable type.
↑ and ↓ to navigate • Enter to select • Esc to close • / to open