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

search for in the

V8Js> <Types de ressources
[edit] Last updated: Fri, 24 May 2013

view this page in

Exemples

Utilisation simple

Exemple #1 Exécution d'un Javascript simple

<?php

$v8 
= new V8Js();

/* basic.js */
$JS = <<< EOT
len = print('Bonjour' + ' le ' + 'monde !' + "\\n");
len;
EOT;

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

?>

L'exemple ci-dessus va afficher :

Bonjour le monde !
int(18)


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

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