Problem Statement
Which function writes data directly to a file without opening it manually?
Explanation
file_put_contents writes data to a file in one call. If the file does not exist, it creates it automatically.
Code Solution
SolutionRead Only
file_put_contents('info.txt','Hello World');