SplFileObject::fgets(PHP 5 >= 5.1.0) SplFileObject::fgets — Gets line from file Описание
   public string SplFileObject::fgets
    ( void
   ) 
  Gets a line from the file. Список параметровУ этой функции нет параметров. Возвращаемые значенияReturns a string containing the next line from the file, or FALSE on error. ОшибкиThrows a RuntimeException if the file cannot be read. Примеры
 Пример #1 SplFileObject::fgets() example This example simply outputs the contents of file.txt line-by-line. 
<?phpСмотрите также
 
  | 
||