````$$$```````````$$``$$$$$$$$``$$`````$$````$$`$$``````````$$`````$$`````$$`````$$```$$```$$`````````$$`````$$`````$$`````$$``$$`````$$````````$$`````$$`````$$`````$$``$$$$$$$$$``$$````$$`````$$``````$$```$$```$$`````$$``$$````$$`````$$```````$$`$$````$$`````$$```$$$$$$``````$$````````$$$````
$fp = fopen('somefile', 'w'); if ( !$fp ) { exit('no such file!');} else { fwrite($fp, 'hello world'); fclose($fp);}