我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在PHP中,文件指针在内部函数结束时自动关闭

I have tried googling this, tried reading the PHP manual for fclose(), but I can't find the answer to this question.

Say I have a PHP file with 2 functions: function A and function B. I fopen() a file pointer in function A:

$filepointer = fopen( $file, 'w');

Let's say I DON'T fclose() the file pointer in function A, but function A reaches its end naturally.

Now I'm in function B. Is the file pointer still available in function B ?

近期文章

  • 如果选择了文件,则上传文件,如果未选择,则在db中使用文件大小验证发送空值
  • PHP组合数组用于过滤器
  • 显示所有数组内容
  • 哈希生日悖论
  • 使用gd库加载图像
  • php Undefined offset 1
  • 只用javascript调用Ajax(没有jquery)
  • 字体真棒CSS在Symfony中不起作用
  • 用php找出Ppt文件的页码
  • 如何在CodeIgniter中显示带参数的url?
  • 如何在调用其他静态函数时调用函数?
  • 导入时,数据并不完全是结果 - acumatica api
  • 显示与数据库数据匹配的某些数组数据
  • php Get方法在&符号后没有得到变量
  • 如果https可用,则仅从http重定向到https
  • 阅读评论字符Instagram时出错
  • 无法使用angularjs谷歌地图调用ng-click功能
  • 将XML转换为平面数组。 工作但只是一点点XPath提示
  • PHP和Wordpress如何从远程文件中读取某些行
  • 通过lh3.googleusercontent.com获取直接链接表单重定向链接

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华