1
0
mirror of https://github.com/danog/ext-php-rs.git synced 2024-12-14 01:57:33 +01:00
ext-php-rs/example/skel/test.php
David 62a43e64d9
Added Debug and Clone implementations ()
* Implemented Debug and Clone for most types

* Added `throw!` macro to throw and return
2021-04-24 13:28:05 +12:00

20 lines
367 B
PHP

<?php
var_dump(skeleton_version(['world' => 'hello', 1, 3],2.1123));
die;
var_dump(SKEL_TEST_CONST, SKEL_TEST_LONG_CONST);
var_dump(test_array());
die;
$x = new TestClass();
skeleton_version(1, 2);
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;
}));