ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
inc.debug.php File Reference

Go to the source code of this file.

Namespaces

namespace  ilias
 redirection script todo: (a better solution should control the processing via a xml file)

Functions

 vd ()
 shortcut for var_dump public
 pr ($var, $name= '')

Function Documentation

pr (   $var,
  $name = '' 
)

Definition at line 60 of file inc.debug.php.

References $name.

{
if($name != '') $name .= ' = ';
echo '<pre>'.$name.print_r($var,true).'</pre>';
}
vd ( )

shortcut for var_dump public

Parameters
mixedany number of parameters

Definition at line 38 of file inc.debug.php.

{
$numargs = func_num_args();
if ($numargs == 0)
{
return false;
}
$arg_list = func_get_args();
$num = 1;
foreach ($arg_list as $arg)
{
echo "<pre>variable ".$num.":<br/>";
var_dump($arg);
echo "</pre><br/>";
$num++;
}
}