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); ?> Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...