mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
20 lines
294 B
PHP
20 lines
294 B
PHP
--TEST--
|
||
SPL: SplFileObject::getCurrentLine
|
||
--CREDITS--
|
||
H<EFBFBD>vard Eide <nucleuz at gmail.com>
|
||
#Testfest php.no
|
||
--FILE--
|
||
<?php
|
||
//line 2
|
||
//line 3
|
||
//line 4
|
||
//line 5
|
||
$s = new SplFileObject(__FILE__);
|
||
$s->seek(1);
|
||
echo $s->getCurrentLine();
|
||
echo $s->getCurrentLine();
|
||
?>
|
||
--EXPECT--
|
||
//line 3
|
||
//line 4
|