A foreign function interface (FFI) lets code in one language interoperate with code in another. A PHP application can use a dynamic library, while Zig code speaks the C ABI—the rules systems libraries use to expose functions and data. section 5.1 section 5.7
A recipe-book backend
For a weekend recipe-book project, a PHP web application can call a Zig library through the C ABI rather than requiring its builder to learn PHP backend development. The library needs an API to create a book, create, delete, and list recipes, access recipe data, and save or load books. section 5.1



