SplFileObject::getMaxLineLen
(PHP 5 >= 5.1.0)
SplFileObject::getMaxLineLen — Get maximum line length
Описание
public int SplFileObject::getMaxLineLen
( void
)
Gets the maximum line length as set by SplFileObject::setMaxLineLen.
Параметри
Тази функция няма параметри.
Връщани стойности
Returns the maximum line length if one has been set with SplFileObject::setMaxLineLen, default is 0.
Примери
Example #1 SplFileObject::getMaxLineLen example
<?php
$file = new SplFileObject("file.txt");
var_dump($file->getMaxLineLen());
$file->setMaxLineLen(20);
var_dump($file->getMaxLineLen());
?>
Примерът по-горе ще изведе нещо подобно на:
int(0) int(20)
Вж. също
- Classname::Method
There are no user contributed notes for this page.
