Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: ob_list_handlers - Manual
[go: Go Back, main page]

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

search for in the

ob_start" width="11" height="7"/> <ob_implicit_flush
Last updated: Thu, 31 May 2007

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" を返します。

例 1643. 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
)   

      

ob_end_clean()ob_end_flush()ob_get_flush() および ob_start() も参照ください。



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

ob_start" width="11" height="7"/> <ob_implicit_flush
Last updated: Thu, 31 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites