Many times when we are developing projects we need to debug so we print something using print_r
(maybe you’re using var_dump
) it meshes up our page. So Here I found a function that will be helpful for you.
This function takes data to print_r
and gives output then we explode it by line. And through loop we send it to firebug console.