파일이 존재하지 않으면 함수가 파일을 작성합니다.

$writeFile = 'vfs://root/test.txt';
$data = 'Some file data';

// 지정된 경로의 파일에 데이터를 저장합니다.
write_file($writeFile, $data);

* vfs://root/test.txt
Some file data