Php > Arrays
Dump Highlighted
Dump Highlighted // An alternative to print_r, this function will print an array // with HTML and Syntax highlighting. Could easily be extended to // support 3D arrays. // USAGE: echo f_arr($_SESSION); function f_arr($arr) { $fr = "
"; $fg = "
"; $fb = "
"; $fk = "
"; $fe = "
"; $l = "$fg [ $fe"; $r = "$fg ] $fe"; $a = "$fk => $fe"; $out = ""; foreach($arr as $k=>$v){ $out[] = $l.$fb.$k.$fe.$r.$a.$fr.$v.$fe; } if(is_array($out)) { return implode("
", $out); } else { return false; } } ?>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage