PHP Doku:: Execute a string as Javascript code - v8js.executestring.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige GrunderweiterungenV8 Javascript Engine IntegrationThe V8Js classV8Js::executeString

Ein Service von Reinhard Neidl - Webprogrammierung.

The V8Js class

<<V8Js::__construct

V8Js::getExtensions>>

V8Js::executeString

(PECL v8js >= 0.1.0)

V8Js::executeStringExecute a string as Javascript code

Beschreibung

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

Compiles and executes the string passed with script as Javascript code.

Parameter-Liste

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

Rückgabewerte

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


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)