ob_get_lengthとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > ob_get_lengthの意味・解説 

ob_get_length

(PHP 4 >= 4.0.2, PHP 5)
ob_get_length — 出力バッファの長さを返す

説明

int ob_get_length ( void )
この関数は、出力バッファの内容の長さを返します。出力の バッファリングがアクティブでない場合には、FALSE を返します。
例 1580. 単純な ob_get_length() の例
<?php

ob_start();

echo "Hello ";

$len1 = ob_get_length();

echo "World";

$len2 = ob_get_length();

ob_end_clean();

echo $len1 . ", ." . $len2;
?>
この例の出力は以下のようになります。


6, 11


      


ob_start()、 ob_get_contents() も参照ください。



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ob_get_length」の関連用語

ob_get_lengthのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ob_get_lengthのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2025 by the PHP Documentation Group.

©2025 GRAS Group, Inc.RSS