fwrite

It writes the string to a file

Example

<?php

$fp = fopen(“test.txt”, “w”);

$data = fwrite($fp,”phpcodez” );

fclose($fp);

?>

Share