public function replaceFile($old, $new, array $content)
    {
        $oldFileContent = file_get_contents($old);
        file_put_contents($new, vsprintf($oldFileContent, $content));
        unlink($old);
    }
public function replaceFile($old, $new, array $content)
    {
        $oldFileContent = file_get_contents($old);
        file_put_contents($new, vsprintf($oldFileContent, $content));
        unlink($old);
    }
public function replaceFile ( $ old , $ new , array $ content ) { $ oldFileContent = file_get_contents ( $ old ) ; file_put_contents ( $ new , vsprintf ( $ oldFileContent , $ content ) ) ; unlink ( $ old ) ; }
Replaces the old file from the specified path
@param string $old
@param string $new
@param Array  $content (vsprintf content)
Replaces the old file from the specified path