WebApp/PHP

파일 읽기 함수

마이클 2010. 5. 30. 13:29
function load_file ($filepath) {
$data = implode("", file($filepath));

return $data;
}

파일의 내용을 리턴합니다.

Implode와 file함수를 엮어쓰기 귀찮은 분들을 위한 최적의 함수