Here is a snippet of a function you can use to output PHP data to the browser console.