Welcome Guest, Not a member yet? Register   Sign In
how to debug
#1

[eluser]runrun[/eluser]
I have an array and i want to see their value how can show them ?

And how can i echo the segments on the screen ?
#2

[eluser]John_Betong[/eluser]
[quote author="runrun" date="1258831971"]I have an array and i want to see their value how can show them ?

And how can i echo the segments on the screen ?[/quote]
 
http://ellislab.com/forums/viewthread/135557/#669235
 
 
 
#3

[eluser]tokyotech[/eluser]
Code:
<?php
   $fook = array('sheet', 'jizz');
?>
<pre>
   &lt;?=print_r($fook)?&gt;
</pre>
#4

[eluser]Ben Edmunds[/eluser]
Most of the time print_r() will do what you need, like tokyotech explained.

Fred() is nice for general purpose/mixed type debugging though and is a very helpful function.




Theme © iAndrew 2016 - Forum software by © MyBB