V8JS.EXECUTESTRING(3) 1 V8JS.EXECUTESTRING(3)
V8Js::executeString - Execute a string as Javascript code
SYNOPSIS
public mixed V8Js::executeString V8Js::FLAG_NONE (string $script, [string $identifier = "V8Js::executeString()"], [int $flags])
DESCRIPTION
Compiles and executes the string passed with $script as Javascript code.
PARAMETERS
o $script
- The code string to be executed.
o $identifier
- Identifier string for the executed code. Used for debugging.
o $flags
- Execution flags. This value must be one of the V8Js::FLAG_* constants, defaulting to V8Js::FLAG_NONE.
o V8Js::FLAG_NONE: no flags
o V8Js::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.
PHP Documentation Group V8JS.EXECUTESTRING(3)