<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.splfileobject.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'splfileobject.getmaxlinelen.php',
    1 => 'SplFileObject::getMaxLineLen',
    2 => '行の最大バイト数を取得する',
  ),
  'up' => 
  array (
    0 => 'class.splfileobject.php',
    1 => 'SplFileObject',
  ),
  'prev' => 
  array (
    0 => 'splfileobject.getflags.php',
    1 => 'SplFileObject::getFlags',
  ),
  'next' => 
  array (
    0 => 'splfileobject.haschildren.php',
    1 => 'SplFileObject::hasChildren',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/spl/splfileobject/getmaxlinelen.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="splfileobject.getmaxlinelen" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SplFileObject::getMaxLineLen</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SplFileObject::getMaxLineLen</span> &mdash; <span class="dc-title">行の最大バイト数を取得する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-splfileobject.getmaxlinelen-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SplFileObject::getMaxLineLen</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   <span class="methodname"><a href="splfileobject.setmaxlinelen.php" class="methodname">SplFileObject::setMaxLineLen()</a></span> によってセットされる行の最大バイト数を取得します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-splfileobject.getmaxlinelen-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-splfileobject.getmaxlinelen-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   <span class="methodname"><a href="splfileobject.setmaxlinelen.php" class="methodname">SplFileObject::setMaxLineLen()</a></span> でセットされる場合は行の最大バイト数を返します。デフォルトは <code class="literal">0</code> です。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-splfileobject.getmaxlinelen-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="methodname"><strong>SplFileObject::getMaxLineLen()</strong></span> の例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$file </span><span style="color: #007700">= new </span><span style="color: #0000BB">SplFileObject</span><span style="color: #007700">(</span><span style="color: #DD0000">"file.txt"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$file</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMaxLineLen</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">$file</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setMaxLineLen</span><span style="color: #007700">(</span><span style="color: #0000BB">20</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$file</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMaxLineLen</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>上の例の出力は、
たとえば以下のようになります。</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">int(0)
int(20)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-splfileobject.getmaxlinelen-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="splfileobject.setmaxlinelen.php" class="methodname" rel="rdfs-seeAlso">SplFileObject::setMaxLineLen()</a> - 読み込む行の最大バイト数をセットする</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>