title: Replacing file content in PHP
body: <p>I need a function just like <a href="http://php.net/manual/en/function.preg-replace.php" rel="noreferrer">preg_replace</a> but instead of strings I need it to work with files / file content.</p>