- 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);
file_put_contents('/tmp/ryat', $str);
var_dump(file_get_contents('/tmp/ryat'));