PX : code

Show variables & values by Alex Rozhik
Download this code


<?php 
/* 
This code show all variables with values in browser window. 
use: dd("GLOBALS"); 
Sample of output: 
*/ 
function dd($v) { 
global 
$a
echo  
"<blockquote>\n"
$q"while(list(\$key,\$val) = each($".$v") ) {         "
    
"  echo \"<b>\$key</b>=>\$val.<br>\";        "
    
"  if(( is_array(\$val)) && (\$key != \"GLOBALS\")) {"
    
"     @dd( \$v.\"[\".\$key.\"]\" );"
    
"}}"
   eval(
$q); 
echo  
"</blockquote>\n"


?> 

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.