What functions in PHP can be used to create text files and what are the limitations?
To create text files in PHP, you can use the `fopen()` function to open or create a file, `fwrite()` function to write content to the file, and `fclose()` function to close the file. It's important to handle file permissions and error checking to ensure the file is created successfully.
$filename = 'example.txt';
$file = fopen($filename, 'w') or die("Unable to open file!");
$content = "Hello, this is some content for the file.";
fwrite($file, $content);
fclose($file);