V8Js::executeString
(PECL v8js >= 0.1.0)
V8Js::executeString — Execute a string as Javascript code
Описание
$script
[, string $identifier
= "V8Js::executeString()"
[, int $flags
= V8Js::FLAG_NONE
]] )
Compiles and executes the string passed with script
as Javascript code.
Список параметров
-
script
-
The code string to be executed.
-
identifier
-
Identifier string for the executed code. Used for debugging.
-
flags
-
Execution flags. This value must be one of the V8Js::FLAG_* constants, defaulting to
V8Js::FLAG_NONE
.-
V8Js::FLAG_NONE
: no flags -
V8Js::FLAG_FORCE_ARRAY
: forces all Javascript objects passed to PHP to be associative arrays
-
Возвращаемые значения
Returns the last variable instantiated in the Javascript code converted to matching PHP variable type.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Другие базовые расширения
- V8 Javascript Engine Integration
- Функция V8Js::__construct() - Construct a new V8Js object
- Функция V8Js::executeString() - Execute a string as Javascript code
- Функция V8Js::getExtensions() - Return an array of registered extensions
- Функция V8Js::getPendingException() - Return pending uncaught Javascript exception
- Функция V8Js::registerExtension() - Register Javascript extensions for V8Js
Коментарии
404 Not Found