Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用is_resource()来确定变量是否是打开的文件句柄。
is_resource()
这是正确的还是有其他(更好的)方法可以做到这一点?
这会给您带来很多误报,例如数据库资源。
你应该get_resource_type改用。
get_resource_type