downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SplFileObject::hasChildren> <SplFileObject::getFlags
[edit] Last updated: Fri, 17 May 2013

view this page in

SplFileObject::getMaxLineLen

(PHP 5 >= 5.1.0)

SplFileObject::getMaxLineLenGet maximum line length

Beschreibung

public int SplFileObject::getMaxLineLen ( void )

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

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

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

Beispiele

Beispiel #1 SplFileObject::getMaxLineLen() example

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

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

int(0)
int(20)

Siehe auch

  • Classname::Method()



add a note add a note User Contributed Notes SplFileObject::getMaxLineLen - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites