Posts Tagged ‘code snippet

Sometimes while debugging a PHP application it is handy to display request and post variables. Here is the code that will do that: foreach($_POST as $var=>$val) { echo “$var=$val”; } Replace POST with SESSION and it’ll work for the session variables. You can do the same with GET, but probably don’t need it.


About this blog

This blog is about technology related topics. It will primarily contain problems and solutions to IT problems that I encounter on a day-to-day basis. In addition interesting things I come across either on or off the internet will be posted here as well. I will also include step-by-step tutorials to common tasks people may need to do with their computers.

Web Hosting Discount

    Get the first month for only $0.01 using coupon code HGCOUPONBLOG. No contracts, cancel anytime.

Revolutionary One Time Password Device

Add to Technorati Favorites