SplFileObject::getFlags
SplFileObject::hasChildren
SplFileObject
PHP Manual

# 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

SplFileObject::getFlags
SplFileObject::hasChildren
SplFileObject
PHP Manual