![]() |
how to debug - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: how to debug (/showthread.php?tid=24827) |
how to debug - El Forum - 11-21-2009 [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 ? how to debug - El Forum - 11-21-2009 [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 how to debug - El Forum - 11-22-2009 [eluser]tokyotech[/eluser] Code: <?php how to debug - El Forum - 11-22-2009 [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. |