f::append PHP Method

append() static public method

Appends new content to an existing file
static public append ( string $file, mixed $content ) : boolean
$file string The path for the file
$content mixed Either a string or an array. Arrays will be converted to JSON.
return boolean
    static function append($file, $content)
    {
        return self::write($file, $content, true);
    }

Usage Example

Example #1
0
 public function testAppend()
 {
     $this->assertTrue(f::append($this->tmpFile, ' is awesome'));
 }
All Usage Examples Of f::append