tell() публичный Метод

Returns the current position of the file read/write pointer
public tell ( ) : integer
Результат integer
Пример #1
0
 public function testStreamPosition()
 {
     $handle = fopen('php://temp', 'w+');
     $stream = new Stream($handle);
     $this->assertEquals(0, $stream->tell());
     $stream->write('foo', strlen('foo'));
     $this->assertEquals(3, $stream->tell());
     $stream->seek(1);
     $this->assertEquals(1, $stream->tell());
     $this->assertSame(ftell($handle), $stream->tell());
 }