略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: V8Js::executeString

2025-03-31

V8Js::executeString

(PECL v8js >= 0.1.0)

V8Js::executeStringExecute a string as Javascript code

说明

public V8Js::executeString(string $script, string $identifier = "V8Js::executeString()", int $flags = V8Js::FLAG_NONE): mixed

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.

返回值

Returns the last variable instantiated in the Javascript code converted to matching PHP variable type.

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/v8js.executestring.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3