PHP fprintf() Function
fprintf() function writes a formatted string to a specified output stream.
Warning: The c type specifier ignores padding and width.
The following text is written to the file 'fruit.txt'
|handle||Required||Specifies a file system pointer resource that is typically created using fopen().|
|format||Required||Specifies the string and how to format the variables in it.|
Possible format values:
|arg1||Required||The argument to be added as the first %-sign in the formatted string.|
|arg2, ..||Optional||The argument to be added as the second %-sign in the formatted string and so on.|
|Number||Returns the length of the string written.|
Hi Developers, we almost covered 90% of String functions and Interview Question on PHP with examples for quick and easy learning.
We are working to cover every Single Concept in PHP.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.