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

search for in the

ob_start> <ob_implicit_flush
Last updated: Fri, 15 Aug 2008

view this page in

ob_list_handlers

(PHP 4 >= 4.3.0, PHP 5)

ob_list_handlers使用中の出力ハンドラの一覧を取得する

説明

array ob_list_handlers ( void )

使用中の出力ハンドラの一覧を返します。

返り値

これは、使用中の出力ハンドラを(もし存在すれば)配列で返します。もし output_buffering が 有効になっているか、あるいは ob_start() で 無名関数が使用されている場合、ob_list_handlers() は "default output handler" を返します。

例1 ob_list_handlers() の例

<?php
// 出力バッファリングを On にします
print_r(ob_list_handlers());
ob_end_flush();

ob_start("ob_gzhandler");
print_r(ob_list_handlers());
ob_end_flush();

// 無名関数
ob_start(create_function('$string''return $string;'));
print_r(ob_list_handlers());
ob_end_flush();
?>

上の例の出力は以下となります。

Array
(
    [0] => default output handler
)

Array
(
    [0] => ob_gzhandler
)

Array
(
    [0] => default output handler
)



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

ob_start> <ob_implicit_flush
Last updated: Fri, 15 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites