[thelist] 2 tips: Firefox WD Toolbar and php print_r()

Paul Bennett Paul.Bennett at wcc.govt.nz
Sun Jan 28 14:50:12 CST 2007


Hi all,

It's Monday and I'm feeling 'tippy' :)

<tip type="persisting site settings with web developer toolbar">
Do you use Chris Pederick's (brilliant) web developer toolbar extension for Firefox?
Do you do use it for things like switching off CSS / JavaScript for pages?
Do you wish it would 'remember' settings like this across whole sites instead of having to reset the settings for each new page?

Simply select 'options' > 'persist features' and it will.
</tip>

<tip type="php - print_r() output as a variable">
Love print_r() but want to store the output in a variable for later rather than have the output echo'd in the browser?

Call the print_r() function with the return parameter set to 'true' and you can.

----
Code from http://nz.php.net/print_r

$b = array ('m' => 'monkey', 'foo' => 'bar', 'x' => array ('x', 'y', 'z'));
$results = print_r($b, true); //$results now contains output from print_r

</tip>

Have a great week everyone :)
Paul



More information about the thelist mailing list