downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

V8Js::getExtensions> <V8Js::__construct
[edit] Last updated: Fri, 17 May 2013

view this page in

V8Js::executeString

(PECL v8js >= 0.1.0)

V8Js::executeStringExecute a string as Javascript code

Descripción

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.

Parámetros

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

Valores devueltos

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



add a note add a note User Contributed Notes V8Js::executeString - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites