Tagged articles
2 articles
Page 1 of 1
php Courses
php Courses
May 16, 2024 · Backend Development

Using PHP fputs() to Write Data to Files

The article explains PHP's fputs() function, detailing its syntax, parameters, return values, and provides a complete example showing how to open a file with fopen(), write a string, handle the result, and close the file with fclose() to ensure proper resource management.

BackendPHPfile-handling
0 likes · 3 min read
Using PHP fputs() to Write Data to Files
php Courses
php Courses
Jan 19, 2024 · Backend Development

Using PHP file_put_contents() to Write Data to Files

This article explains the PHP file_put_contents() function, its syntax, parameters, return values, and provides multiple code examples for writing strings, appending data, and handling arrays or callbacks to efficiently write content to files without manual opening and closing.

Code ExamplesPHPbackend-development
0 likes · 4 min read
Using PHP file_put_contents() to Write Data to Files