FusionDirectory
 All Data Structures Files Functions Variables
Public Member Functions
printAClass Class Reference

print_a class and helper function prints out an array in a more readable way than print_r() More...

Public Member Functions

 __construct ()
 printAClass constructor
 
 print_a ($array, $iteration=FALSE, $key_bg_color=FALSE)
 

Detailed Description

print_a class and helper function prints out an array in a more readable way than print_r()

based on the print_a() function from Stephan Pirson (Saibot)

Definition at line 62 of file functions_debug.inc.

Member Function Documentation

print_a (   $array,
  $iteration = FALSE,
  $key_bg_color = FALSE 
)

recursive function! if print_a() was called with a fourth parameter (1 or 2) and you click on the table a window opens with only the output of print_a() in it 1 = serialized array 2 = normal print_a() display

put the following code on the page defined with $export_dumper_path; —>%-— snip —>%-— if($_GET['mode'] == 1) { print htmlspecialchars( stripslashes ( $_POST['array'] ) ); } elseif($_GET['mode'] == 2) { print_a(unserialize( stripslashes($_POST['array'])) ); } —%<-— snip —%<-—

Parameters
array$array
boolean$iterationfalse
boolean$key_bg_colofalse

Definition at line 113 of file functions_debug.inc.


The documentation for this class was generated from the following file: