Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.flush
.ob clean
.ob end clean
.ob end flush
.ob flush
.ob get clean
.ob get contents
.ob get flush
.ob get length
.ob get level
.ob get status
.ob gzhandler
.ob implicit flush
.ob list handlers
.ob start
.output add rewrite var
.output reset rewrite vars
 
   

  ob_list_handlers  


ob_list_handlers

(PHP 4 >= 4.3.0, PHP 5)

ob_list_handlers --  Liste les gestionnaires d'affichage utilisés

Description

array ob_list_handlers ( void )

Cette fonction retourne un tableau avec le gestionnaire d'affichage en cours d'utilisation (s'il existe). Si output_buffering est activé ou si une fonction anonyme est utilisée avec ob_start(), ob_list_handlers() retournera un tableau avec comme valeur d'entrée : "default output handler".

Exemple 1. Exemple avec ob_list_handlers()

<?php

// avec output_buffering=On
print_r(ob_list_handlers());
ob_end_flush();

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

// fonctions anonymes
ob_start(create_function('$string', 'return $string;'));
print_r(ob_list_handlers());
ob_end_flush();
?>

L'exemple ci-dessus va afficher :

Array
(
    [0] => default output handler
)

Array
(
    [0] => ob_gzhandler
)

Array
(
    [0] => default output handler
)

Voir aussi ob_end_clean(), ob_end_flush(), ob_get_flush() et ob_start().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.