PHP – Converting an Array to JSON

Every now and then I stumble upon a tidbit of information that just makes me want to kick myself. Today was one of those days. Just by chance I ended up at an entry on PHP.net while Googling another issue. Once I realized what this function was capable of I was torn between thinking “Wow, [...]

Tags: , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments

Dynamic Variable Names in PHP

Anyone who has spent a large amount of time programming in PHP has probably used it’s dynamic variable name feature at least once. For those of you who are unfamiliar with it’s usages I will give a quick example: The above is a method I often use to make sure that all POST or GET [...]

Tags: ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments

JavaScript’s Modulus “Bug”

I recently encountered an issue that caused me a bit of confusion. JavaScript was not calculating a modulus in the same manner that Windows Calculator or Visual Basic was. At first I had thought this to be a bug, but after doing a bit more research I discovered that it was actually giving the correct [...]

Tags: , , , ,

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments
 Page 4 of 13  « First  ... « 2  3  4  5  6 » ...  Last »