Write down a PHP script to create a file by name "test.txt" if it does not exist. code example
Example: laravel create new file if not exists
if (!file_exists('somefile.txt')) {
touch('somefile.txt', strtotime('-1 days'));
}
if (!file_exists('somefile.txt')) {
touch('somefile.txt', strtotime('-1 days'));
}