0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 10:31:53 +00:00

Syntax highlight API stuff

This commit is contained in:
Stefan Siegl 2014-10-23 22:57:26 +02:00
parent 30119a877a
commit a9d7dbda45

View File

@ -77,6 +77,7 @@ sudo make install
PHP API
=======
```php
class V8Js
{
/* Constants */
@ -149,10 +150,12 @@ PHP API
final class V8JsMemoryLimitException extends Exception
{
}
```
Javascript API
==============
```js
// Print a string.
print(string);
@ -165,6 +168,7 @@ Javascript API
// CommonJS Module support to require external code.
// This makes use of the PHP module loader provided via V8Js::setModuleLoader (see PHP API above).
require("path/to/module");
```
The JavaScript `in` operator, when applied to a wrapped PHP object,
works the same as the PHP `isset()` function. Similarly, when applied