Re: Re: svn: /php/php-src/trunk/ NEWS ext/json/json.c ext/json/php_json.h ext/json/tests/serialize.phpt
| From: | Hannes Magnusson | Date: | Sat, 15 May 2010 12:24:44 +0000 |
| Subject: | Re: Re: svn: /php/php-src/trunk/ NEWS ext/json/json.c ext/json/php_json.h ext/json/tests/serialize.phpt | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48298@lists.php.net to get a copy of this message | ||
2010/5/14 Jared Williams <jared.williams1@ntlworld.com>:
> $a = new A();
> echo $a->toJSONString(), "\n";
> $b = new B();
> echo $b->toJSONString(), "\n";
>
$array = array(new A,new B,);
// Does not use your toJSONString method
echo json_encode($array);
-Hannes