because you so nicely didn't make fun of me...that much :) I keep it in it's own file and just use it as in include to probe where I need to. ------code follows------ <?php function breakarray($passed){ echo '<table border="1"><tr><th>key</th><th>value</th></tr>'; foreach($passed as $tkey=>$tvalue){ echo '<tr><td>[' , $tkey , ']</td><td>'; if(is_array($tvalue)){ breakarray($tvalue); }else{ echo '"' , $tvalue , '"</td></tr>'; }; }; echo '</table>'; }; echo '<table border=1><tr> <th>variable</th> <th>value</th> </tr>'; foreach(get_defined_vars() as $key => $value){ echo '<tr><td>$',$key ,'</td><td>'; if(is_array($value) and $key != 'GLOBALS'){ if(sizeof($value) > 0){ breakarray($value); echo '</td></tr>'; }else{ echo 'EMPTY </td></tr>'; }; }else{ echo '"' , $value , '"</td></tr>'; }; }; echo '</table>'; ?> ----- Original Message ----- From: Ashley Sheridan To: Chris Cc: Frank Stanovcak ; Terion Miller ; php-general@xxxxxxxxxxxxx Sent: Wednesday, January 07, 2009 7:23 PM Subject: Re: Re: can a session be used in a query? On Thu, 2009-01-08 at 11:09 +1100, Chris wrote: Ashley Sheridan wrote: > On Wed, 2009-01-07 at 18:50 -0500, Frank Stanovcak wrote: >> here is a handy little snippet of code I use. Just include it where you >> want to get a snap shot of all the variables in an app. >> >> ta ta for today boys! > Is it just me, or can anybody else not see the code snippet? :p it was an attachment.. Ah, he would have been better off posting a link, the list blocks attachments! Ash www.ashleysheridan.co.uk