PHP fwrite May 12, 2012 Pramod T P It writes the string to a file Example <?php $fp = fopen(“test.txt”, “w”); $data = fwrite($fp,”phpcodez” ); fclose($fp); ?>