PHP-008- [Data type] - Resource Type

Learning Points
type 1.get_resource_type access to resources

<?php
//建立一种资源
$fp=fopen("peoples.xml","r");

//显示资源的类型
echo get_resource_type($fp);//stream 

//关闭一个资源
fclose($fp);
?>

 

Published 47 original articles · won praise 3 · Views 1971

Guess you like

Origin blog.csdn.net/yueyekonglong/article/details/103988150