Re: Extension to return SimpleXML object

From: Date: Fri, 27 Jun 2008 17:08:55 +0000
Subject: Re: Extension to return SimpleXML object
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-5576@lists.php.net to get a copy of this message
On Fri, Jun 27, 2008 at 8:41 PM, Tony Ser <tser@deltacontrols.com> wrote: > > We are implementing our own extension and in a lot of cases we would like to > return complex data. > XML will be a natural choice except that we don't want to format the complex > data into string, return the xml string and have the PHP Script parse it > before manipulating the content. It will be very inefficient. > > Wonder if there is a way to return the standard SimpleXML object and the > script will able to use it right away. > Or any other suggestion to return complex data ? Just return objects, which can be used to later serialize data into xml, yaml, json or even php's serialize() objects are the most flexible solution -- Alexey Zakhlestin http://blog.milkfarmsoft.com/

« previous php.pecl.dev (#5576) next »