public static function replaceInFile($filename, $replacements){
		$content = \file_get_contents($filename);
		foreach ($replacements as $find => $replace) {
			$content = \str_replace($find, $replace, $content);
		}
		\file_put_contents($filename, $content);
	}
public static function replaceInFile($filename, $replacements){
		$content = \file_get_contents($filename);
		foreach ($replacements as $find => $replace) {
			$content = \str_replace($find, $replace, $content);
		}
		\file_put_contents($filename, $content);
	}
public static function replaceInFile ( $ filename , $ replacements ) { $ content = \ file_get_contents ( $ filename ) ; foreach ( $ replacements as $ find => $ replace ) { $ content = \ str_replace ( $ find , $ replace , $ content ) ; } \ file_put_contents ( $ filename , $ content ) ; }
replace file content
@param  string $filename     the file name
@param  array $replacements a key/value paired array for replacements values
@return void
replace file content