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 : Print array function in PHP. Best for debugging your associative arrays in PHP.
Categories : PHP Update Picture
Levan Tcheishvili
Date : Jan 18th 2000
Grade : Be the 1st to grade this Code Example
Viewed : 9780
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Levan Tcheishvili
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

//You are free to use below given code, provided you indicate author.
//Author:Levan Tcheishvili (levan@kaz-incon.com).
//
//Very simple, but useful function while debugging your PHP programms.
//
//How to use:
//
//print_arr($your_array);
//
//That is it ! And see what's inside your PHP array.
//Note: Do not enter $level variable it is for internal purpose.

function print_arr($arr,$level=0){
$spaces="";
for($i=0;$i<$level;$spaces.='-',$i++);
if (!is_array($arr)) {echo $spaces,"$arr<br>"; return 1;}

reset($arr);
while ( list( $key, $val ) = each( $arr ) ){
if (is_array($arr[$key])) {
echo $spaces,"$key=><br>";
$level++;
print_arr($arr[$key],$level);
$level--;
} //if

else echo $spaces,"$key=>$arr[$key]<br>";
}
//**********************************************
}//print_arr



Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
Calendar using Date function
Categories : HTML and PHP, PHP, Date Time, Calendar
UDMSearch - a free search engine, indexing system.
Categories : Search Engines, Linux, PHP, MySQL, ODBC
how to check if a string contains a letter from a different language?
Categories : PHP, Regexps, Languages
Save time debugging PHP3 under UNIX/Linux using linked .phps files
Categories : HTML and PHP, Debugging, PHP
PostGreSQL and MySQL 2 in 1 db Manager
Categories : PHP, PHP Classes, Databases, PostgreSQL, MySQL
AJAX Data Grid System using php and mysql. A complete login system with the ability to display data in a grid using ajax. Add , update and delete the records without reloading the page.
Categories : PHP, AJAX, Databases, MySQL, Java Script
fforum fumanchi forum MySQL treestructure
Categories : Complete Programs, PHP, MySQL
ibase_close -- Close a connection to an InterBase database
Categories : PHP, PHP Functions, InterBase
How to pass an array to a function, or how to define a function wich recieves an array.
Categories : Variables, PHP, Arrays
Simple class to build tables with style sheets
Categories : HTML and PHP, PHP Classes, PHP
Show Source with Line Numbers
Categories : PHP, Regexps, Filesystem
This simple function will take a few arguments and easily set a associative array for each column in a result from a MySQL query
Categories : Databases, PHP, MySQL, Arrays
Dynamic Image Authentication System in Signup Pages (CAPTCHA)
Categories : PHP, Security, GD image library
How to find the name of the current file?
Categories : PHP, Filesystem, Strings