append() 공개 메소드

Append data to a file.
public append ( string $data ) : File
$data string
리턴 File
예제 #1
0
 public function testAppend()
 {
     $f = new File(__DIR__ . '/../tmp/access.txt');
     $f->append('123456');
     $f->append('789');
     $this->assertContains('123456789', $f->read());
 }