wasmerio / wasmer-php

🐘🕸️ WebAssembly runtime for PHP
https://wasmerio.github.io/wasmer-php/wasm/
MIT License
1k stars 42 forks source link

How should call a function from php? #116

Closed changzee closed 4 years ago

changzee commented 4 years ago

For javascript, wasm can do interaction with js function by some approaches. Can php-ext-wasm do it too ? https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html

Hywan commented 4 years ago

Yes, see the imported_function example: