SplFileObject::getMaxLineLen

(PHP 5 >= 5.1.0, PHP 7)

SplFileObject::getMaxLineLenGet maximum line length

Opis

public SplFileObject::getMaxLineLen ( void ) : int

Gets the maximum line length as set by SplFileObject::setMaxLineLen().

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

Returns the maximum line length if one has been set with SplFileObject::setMaxLineLen(), default is 0.

Przykłady

Przykład #1 SplFileObject::getMaxLineLen() example

<?php
$file 
= new SplFileObject("file.txt");
var_dump($file->getMaxLineLen());

$file->setMaxLineLen(20);
var_dump($file->getMaxLineLen());
?>

Powyższy przykład wyświetli coś podobnego do:

int(0)
int(20)

Zobacz też:

  • Classname::Method()

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top