Code Comments
Programming Forum and web based access to our favorite programming groups.Charles Gebhard wrote: > 'attributesArray' // all values in this key will be treated as attributes see the serializeWithAttributes2 example $options = array( "indent" => " ", "linebreak" => "\n", "rootName" => "books", "scalarAsAttributes" => false, "attributesArray" => '_attributes', "contentName" => '_content' ); $data = array( 'book' => array( 'author' => array( '_attributes' => array( 'id' => '455', 'lang' => 'en' ), '_content' => 'Jim'), 'title' => array( '_attributes' => array( 'alt' => 'more stuff' ), '_content' => 'stuff') ) ); > > thanks for any help. > > -chuck >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.