C Type Handles

(PHP 7 >= 7.4.0, PHP 8)

简介

类摘要

FFI\CType {
}

User Contributed Notes

scorninpc at php dot net 03-Jan-2020 09:33
You can compare CTypes if you want to know if the type are correct

\FFI::typeof(\FFI::addr($a)) == \FFI::typeof(\FFI::new("void *"))

CType need some methods, like equal() or toString(), but .....
PHP8中文手册 站长在线 整理 版权归PHP文档组所有