Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Print_R()

$
0
0
Hi frined,

If u do not use this
echo "<pre>";
print_r($arr);
echo "</pre>";


then u can use this below function put your common file
function p($ob, $f=1)
{
	print "<pre>";
	print_r($ob);
	print "</pre>";
	if($f==1) 	exit;
}


and use this
p($arr);


if page continue work u can use this
p($arr,0)



Hope it may helpful

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>