Re: Json.php

From: Date: Mon, 16 Apr 2007 09:40:04 +0000
Subject: Re: Json.php
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-252991@lists.php.net to get a copy of this message
Otto Wyss wrote: > Tijnema ! wrote: >> >> *ROFLMFAO*...Did you actually try google for json.php? >> Second result: >> http://mike.teczno.com/JSON/JSON.phps >> > This doesn't have a json_encode but needs a $json object which then > could be used as $json->encode(...). Thanks anyway. that's going to make it completely impossible to use then isn't it. no way you could possibly wrap the class/objects functionality in a wrapper function. if (!function_exists('json_encode')) { function json_encode($data) { $json = new JSON; // or whatever the class is called. return $json->encode($data); } } omg that was hard. > > O. Wyss >

« previous php.general (#252991) next »