fputs

Its an  alias of fwrite() and writes to a file

Example

<?php

$fp = fopen(‘test.txt’, ‘w’);

fputs($fp, “phpcodez”);

fclose($fp);

?>

Share