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

search for in the

SplFileObject::hasChildren> <SplFileObject::getFlags
[edit] Last updated: Fri, 25 May 2012

view this page in

SplFileObject::getMaxLineLen

(PHP 5 >= 5.1.0)

SplFileObject::getMaxLineLen行の最大バイト数を取得する

説明

public int SplFileObject::getMaxLineLen ( void )

SplFileObject::setMaxLineLen() によってセットされる行の最大バイト数を取得します。

パラメータ

この関数にはパラメータはありません。

返り値

SplFileObject::setMaxLineLen() でセットされる場合は行の最大バイト数を返します。デフォルトは 0 です。

例1 SplFileObject::getMaxLineLen() の例

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

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

上の例の出力は、 たとえば以下のようになります。

int(0)
int(20)

参考

  • Classname::Method()



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

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