PHP File Handling Quiz (original) (raw)
Which PHP function is used to open a file?
What function is used to close an open file handle?
How can you check if a file exists before opening it?
Which function deletes a file?
What is the typical file extension for CSV files?
How do you create a new directory in PHP?
Which function lists files in a directory?
What function changes the permissions of a file?
How do you read a file line by line in PHP?
- Using
fgets()
orfgetcsv()
inside a loop - Using
file_get_contents()
Which function returns the file extension of a file?
There are 10 questions to complete.
Take a part in the ongoing discussion