Send print_r output to Firebug Console.log()

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.

Shyam has written 29 articles

Shyam is senior full stack developer, who loves to explore new technologies and work on them. He's passionate about coding so can code 24/7. He uses PHP as a backend programming language.

He knows Laravel, MySQL, AngularJS, ReactJS, Redis, Kubernetes, Git, CodeIgniter, PHP, MVC pattern, Lodash, jQuery, VanilaJS, Teamcity and many other technologies and tools.

Shyam writes notes and hacks on his blog (https://shyammakwana.me). In spare time he can be found @ StackOverflow or crafting any new open source application.

Passionate Programmer and Meditator #PERIOD.