From: "Christoph Dorn" <christoph.d...@gmail.com>
Date: Thu, 08 Feb 2007 08:23:27 -0800
Local: Thurs, Feb 8 2007 11:23 am
Subject: Re: FirePHP array indentation
The variable output is generated with a custom function I use. I have
included it below. You can use it like this: p($_SESSION,'$_SESSION'); ------------------- $padding_str = str_pad('',$Padding,' '); if(is_object($msg)) { if($vars = get_object_vars($msg)) { print('<span style="background-color: #FFCC00"><font print '<table border="1" cellpadding="1">'; foreach($vars as $name => $value) { print '<tr> p($value,$name); print '</td> print '</table>'; } else { p('Object (no vars)',$name); print('</font>] END OBJECT</b></font></span><br>'."\n"); } else { print('<span style="background-color: #FFFFFF"><font if(gettype($msg)=='array') { print('<pre>'); var_dump($msg); print('</pre>'); } ------------------- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||