문제

When i use fopen(); and then i use fclose(); does it just close file or also cleans memory?

도움이 되었습니까?

해결책

It also cleans memory.

PHP does it by itself by the way (even without explicitely closing the pointer), using its own garbage collection functionality. It's still good practice to explicitely close it though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top