2010/5/14 Jared Williams <jared.willia...@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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to