You are here: Re: PLEASE HELP - Very odd problem « PHP Programming Language « IT news, forums, messages
Re: PLEASE HELP - Very odd problem

Posted by Toby A Inkster on 03/06/07 13:08

Jerry Stuckle wrote:

> I agree, Tony.

Jerry, surely we've been posting in the same groups for long enough by now
for you to have learnt how to spell my name?

> echo statements work quite well.

function debug_them ()
{
for ( $i=1 ; $i<func_num_args() ; $i++ )
{
$val = func_get_arg($i);
if (is_array($val))
print_r($val);
else
print $val;
print "\n----\n";
}
if (func_get_arg(0)) exit();
}

usage:

debug_them(FALSE, $_SESSION, $some_array, $some_var);
debug_them(TRUE, $_POST);

The first parameter says whether the script should exit after outputting
the other parameters.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация