WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : PHP Dump in html format the contents of one array variable with a recursive list of the nested array variables inside.
Categories : PHP, Arrays, Variables Click here to Update Your Picture
aitor solozabal merino
Date : Aug 28th 2007
Grade : 1 of 5 (graded 3 times)
Viewed : 20493
File : 4694.php
Images : No Images for this code example.
Search : More code by aitor solozabal merino
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?php
/*
=============================================================================
Name Program : variable_array_dump.php
Author       : Aitor Solozabal Merino (Spain)
Email        : aitor-3@euskalnet.net
Date         : 25-08-2007
Type         : php program code utility
Description  : A dump in html format of the contents of one array variable with a
              : recursive list of contents inclusive nested array variables inside
Installation : Put this programs in a subfolder of the www of your web server
              : document root directory
Sample       : The global variables $_SERVER, $_ENV, $_REQUEST, $_GET, $_POST and $_COOKIE

*/
function variable_array_dump($VARIABLE_NAME, $VARIABLE_ARRAY){
   if (
is_array($VARIABLE_ARRAY)) {
     
$output = "<table border='1'>";
     
$output .= "<head><tr><td><b>" . $VARIABLE_NAME . "</b></td><td><b>VALUE</b></td></tr></head><body>";
      foreach (
$VARIABLE_ARRAY as $key => $value) {
         
$value = variable_array_dump($key, $value);
         
$output .= "<tr><td>$key</td><td>$value</td></tr>";
      }
     
$output .= "</body></table>";
      return
$output;
   } else {return
strval($VARIABLE_ARRAY);}
}
echo
variable_array_dump('GLOBAL SERVER', $_SERVER);
echo
variable_array_dump('GLOBAL ENV', $_ENV);
echo
variable_array_dump('GLOBAL REQUEST', $_REQUEST);
echo
variable_array_dump('GLOBAL GET', $_GET);
echo
variable_array_dump('GLOBAL POST', $_POST);
echo
variable_array_dump('GLOBAL COOKIE', $_COOKIE);
/*
This program code is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation in any version
of the License.
This program is non professional and distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
?>



Pageinfo: Array containing page URI, page query string (parameters), request method (GET or POST) and the complete URI
Categories : Variables, PHP Options and Info, Arrays, URLs, PHP
Variable serialization and unserialization. Loading and saving variable structures to and from file.
Categories : Arrays, Filesystem, Variables, Strings, PHP
clearing variables in php3
Categories : Variables, Arrays, PHP
Dump the contents of a PHP variable in html format with a recursive list of subfolders and files from a given root directory.
Categories : PHP, Directories, Variables, Arrays
A class to put get and post variables in hidden form elements. Works on scalars, normal arrays, associative arrays.
Categories : Algorithms, Variables, Arrays, PHP, PHP Classes
How to pass an array to a function, or how to define a function wich recieves an array.
Categories : Variables, PHP, Arrays
translate.php - Assocciative array example, passing a reference to a function.
Categories : PHP, Arrays, Languages, Variables
A database abstraction layer for the PHP Oracle 8 module (available from PHP 3.0.5). It supports persistent connections, fetching rows into arrays, prepare/execute (variable binding) and has a new and improved error interface.
Categories : Databases, Oracle, PHP, Arrays, Variables
Simple script to passing persistent and growing array between recalls of one page (manipulate little stack).
Categories : Arrays, Global Variables, PHP, HTML and PHP, Variables
getting the name of the current script and query string
Categories : PHP, Global Variables, Variables, URLs
Dynamic Loading of XML array data into ComboBox and Display XML data using PHP + DOM + Javascript.
Categories : PHP, Java Script, DOM XML, XML, Arrays
How to pass an array from one PHP Script to another via an HTML form
Categories : PHP, HTML and PHP, Arrays
Select with current month
Categories : PHP, HTML and PHP, Date Time, Arrays
Newbie Notes #5 - To double quote, or single quote, that is the question
Categories : PHP, Beginner Guides, Variables
How to ifconfig down/up a list of IP's
Categories : Arrays, Strings, Filesystem, PHP