Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB