public static function strReplaceFile(string $find, string $replace, string $file_path)
    {
        file_put_contents($file_path, str_replace($find, $replace, file_get_contents($file_path)));
    }
public static function strReplaceFile(string $find, string $replace, string $file_path)
    {
        file_put_contents($file_path, str_replace($find, $replace, file_get_contents($file_path)));
    }
public static function strReplaceFile ( string $ find , string $ replace , string $ file_path ) { file_put_contents ( $ file_path , str_replace ( $ find , $ replace , file_get_contents ( $ file_path ) ) ) ; }
Replace a string from a file.

@author Erik Campobadal Fores <soc@erik.cat>
@copyright 2017 erik.cat
@param string $find
@param string $replace
@param string $file_path
@return void
Replace a string from a file .