php 资源类型 fclose

$fp = fopen('a.txt", 'r');

fclose($fp);

echo json_encode($fp);

输出false => 对于已经释放的资源类型 则对应变量变成了false

你可能感兴趣的:(php积累)