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

search for in the

V8Js> <Tipos de recursos
[edit] Last updated: Fri, 24 May 2013

view this page in

Ejemplos

Uso básico

Ejemplo #1 Básica ejecución Javascript

<?php

$v8 
= new V8Js();

/* basic.js */
$JS = <<< EOT
len = print('¡Hola' + ' ' + 'Mundo!' + "\\n");
len;
EOT;

try {
  
var_dump($v8->executeString($JS'basic.js'));
} catch (
V8JsException $e) {
  
var_dump($e);
}

?>

El resultado del ejemplo sería:

¡Hola Mundo!
int(13)


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

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