mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-12 09:09:46 +01:00
b6b4974236
* Added ability to call functions given from PHP * Return an `Option` rather than a `Result`
10 lines
193 B
PHP
10 lines
193 B
PHP
<?php
|
|
|
|
$x = new TestClass();
|
|
|
|
var_dump($x->call(function ($v1, $v2) {
|
|
// var_dump($v1, $v2);
|
|
// echo "Hello, world! I'm a callable.".PHP_EOL;
|
|
// return "Ok rust";
|
|
return 0;
|
|
})); |