public static function putFileContents($path, $data) { $f = new self($path); return $f->putContents($data); }
public static function putFileContents($path, $data, $flags = self::REWRITE) { $f = new self($path); return $f->putContents($data, $flags); }
/** * Put data into file (like file_put_contents, but using File features) * * @param string * @param string * @param bool Append instead of truncate * @param bool Acquire an exclusive lock * @param bool Write atomically * @return int Amount of bytes that were written to the file * @see putAtomically() * @see putContents() * @throws IOException * @throws IllegalStateException */ public static function put($filename, $data, $append = false, $lock = false, $atomic = false) { $f = new self($filename); return $f->putContents($data, $append, $lock, $atomic); }