• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to inspect the data array in the view.

#7
[eluser]Colin Williams[/eluser]
Better solution if there is HTML code in your $data array:

Code:
function print_rr($arr, $store = FALSE)
{
   $output = '<pre>'. htmlspecialchars(print_r($arr, TRUE)) .'</pre>';
   if ($store === TRUE)
   {
      return $output;
   }
   else
   {
      print $output;
   }
}


Messages In This Thread
how to inspect the data array in the view. - by El Forum - 07-29-2008, 04:38 AM
how to inspect the data array in the view. - by El Forum - 07-29-2008, 04:46 AM
how to inspect the data array in the view. - by El Forum - 07-29-2008, 09:05 AM
how to inspect the data array in the view. - by El Forum - 07-30-2008, 12:15 AM
how to inspect the data array in the view. - by El Forum - 07-30-2008, 01:00 AM
how to inspect the data array in the view. - by El Forum - 07-30-2008, 01:02 AM
how to inspect the data array in the view. - by El Forum - 07-30-2008, 01:09 AM
how to inspect the data array in the view. - by El Forum - 07-30-2008, 01:37 AM
how to inspect the data array in the view. - by El Forum - 07-30-2008, 01:40 AM
how to inspect the data array in the view. - by El Forum - 07-30-2008, 02:32 AM
how to inspect the data array in the view. - by El Forum - 07-30-2008, 02:40 AM
how to inspect the data array in the view. - by El Forum - 07-31-2008, 03:16 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.