- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- addslashes: documentation ( source)
- file_put_contents: documentation ( source)
<?php
$str = "ryat\0hi";
//var_dump($str);
//$str = addslashes($str);
//var_dump($str);
file_put_contents('/tmp/ryat', addslashes($str));
var_dump(file_get_contents('/tmp/ryat'));