public function fileEdit($file, $search, $replace)
    {
        file_put_contents($file, str_replace(
            $search,
            $replace,
            file_get_contents($file)
        ));
    }
public function fileEdit($file, $search, $replace)
    {
        file_put_contents($file, str_replace(
            $search,
            $replace,
            file_get_contents($file)
        ));
    }
public function fileEdit ( $ file , $ search , $ replace ) { file_put_contents ( $ file , str_replace ( $ search , $ replace , file_get_contents ( $ file ) ) ) ; }
Edit part of the contents of a file
@param  string $file
@param  string $search
@param  string $replace
@return void
Edit part of the contents of a file