From fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Wed, 11 Jan 2012 14:36:35 +0100 Subject: format source files --- application/Functions.php | 54 +++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'application/Functions.php') diff --git a/application/Functions.php b/application/Functions.php index 9e2ccf5..b96b039 100644 --- a/application/Functions.php +++ b/application/Functions.php @@ -1,4 +1,4 @@ -1){ - $out = ''; - ob_start(); - echo "
"; - $a = func_get_arg(0); - $a = (is_bool($a))?(($a)?'true':'false'):$a; - print_r($a); - echo ""; - } +function print_a() { + $numargs = func_num_args(); + if($numargs > 1) { + $out = ''; + ob_start(); + echo "
"; + $a = func_get_arg(0); + $a = (is_bool($a)) ? (($a) ? 'true' : 'false') : $a; + print_r($a); + echo ""; + } } \ No newline at end of file -- cgit v1.2.3-55-g7522