make _debug_array() look good on php4 again

This commit is contained in:
Miles Lott 2002-02-23 18:07:45 +00:00
parent 0ac2d5a353
commit 4aea8e09ad

View File

@ -588,7 +588,20 @@
/* Just a wrapper to my new print_r() function I added to the php3 support file. Seek3r */ /* Just a wrapper to my new print_r() function I added to the php3 support file. Seek3r */
function _debug_array($array) function _debug_array($array)
{ {
$four = False;
if(@floor(phpversion()) == 4)
{
$four = True;
}
if($four)
{
echo '<pre>';
}
print_r($array); print_r($array);
if($four)
{
echo '</pre>';
}
} }
/*! /*!