Using FFI infrastructural methods

Learn the methods that provide the necessary infrastructure to execute C functions in PHP 8.

FFI extension infrastructural category methods can be thought of as behind-the-scenes components that support the infrastructure needed for C function binding to work properly. The FFI extension is needed if we wish to access C data structures from within a PHP application directly. Thus, if we need to do the equivalent of a PHP unset() statement to release memory or a PHP include() statement to include external program code, the FFI extension infrastructural methods provide the bridge between native C data and PHP.

Get hands-on with 1200+ tech skills courses.