- var_dump: documentation ( source)
- stripslashes: documentation ( source)
- str_replace: documentation ( source)
<?php
$input = stripslashes("Sc\reen S/hot 20'14-05-19 at 14.21.22");
$filename = str_replace(['/', '\'', ' '], '_', $input);
var_dump($filename);