Posts Tagged ‘json’

Adding search with jQuery and Check Boxes

Monday, August 25th, 2008

Asian Diving Vacation search function... Read More

jQuery JSON with PHP json_encode and json_decode

Friday, August 15th, 2008

Today I looked for a replacement for my old jspanserializer.js script that I can’t even remember where I found anymore. Turns out that I wont have to either, I can forget it. From now on I’ll use jQuery JSON instead.... Read More

Fluent Arrays and Strings in PHP - Adding JSON and more

Friday, July 11th, 2008

Table of Contents for Fluent interfaces in PHP

  1. Fluent Arrays and Strings in PHP
  2. Fluent Arrays and Strings in PHP - Adding JSON and more

Recently I’ve had the need to extend the interface further, among other things with JSON support. I’ve used code published by Nicolas Crovatti to do this. There was one line in there though that wasn’t consistent with its purpose. If you use that code you have to replace if($i != $keys[$i]) with if($i !== $keys[$i]). On the other hand if you use PHP >= 5.2 you don’t need this function at all, you use json_encode instead.... Read More