Re: Json.php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote:

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.

Can't you just feel the love in the room? That's the kind of support I like to see! =P

~PT

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux