NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: Passing array elements as... strings?

Mark Armendariz enolists at gmail.com
Thu Jan 4 15:48:06 EST 2007


sorry, skipped a line in the dbg function:


>
> and my debug function:
>
> <?php
> function dbg($mVar, $sTitle = '') {
>         $sReturn = '';
>
>         if (strlen($sTitle)) {
>             $sReturn .= $sTitle .= ': ';
>         }
>
>         $sReturn .= '<pre>' . print_r($mVar, 1) . '</pre>';

            echo $sReturn;  // <--------- This line


}
> ?>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070104/8fb06dbe/attachment.html>


More information about the talk mailing list