本文共 795 字,大约阅读时间需要 2 分钟。
python函数示例
The full form of closedir is "Close Directory", the function closedir() is used to close an opened directory.
Closedir的完整格式为“ Close Directory” , 函数closedir()用于关闭打开的目录。
Syntax:
句法:
closedir(dir_handle);
Parameter(s):
参数:
dir_handle – it is an optional parameter which is used to specify the directory handle resource if we do not specify the directory handle resource – it assumes the last link opened with .
dir_handle –是一个可选参数,如果我们未指定目录句柄资源,则用于指定目录句柄资源–假定使用打开的最后一个链接。
Return value:
返回值:
It returns nothing.
它什么也不返回。
Example: PHP code to open a directory, read its files, and close it
示例:PHP代码打开目录,读取其文件,然后关闭它
"; } //closing the directory closedir($dh); }}?>
Output
输出量
File:..File:main.phpFile:.
Reference:
参考:
翻译自:
python函数示例
转载地址:http://fvtzd.baihongyu.com/