Example #1
0
/**
 * Overwrite the specified file (or the file contained in the $absolute
 * property) with the specified $data.
 *
 * Please note that here the parameters are reversed from how they
 * appear in the File class, because the $file parameter is required.
 * This function does not operate on a global instance of File, as
 * some other functions of its type do.
 *
 * @access public
 * @param string
 * @param string
 * @return boolean
 */
function file_overwrite($file, $data)
{
    return File::overwrite($data, $file);
}