Re: array structure bug/issue w/XML_Unserializer
| From: | Stephan Schmidt | Date: | Sun, 31 Oct 2004 16:40:48 +0000 |
| Subject: | Re: array structure bug/issue w/XML_Unserializer | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-15248@lists.php.net to get a copy of this message | ||
Hi,
Erik Heerlein wrote:
I noticed someone else posted this issue and the suggestion was to use an "if/else" construct. A workable solution to me would be to make everything like the second example and have indexed arrays no matter the number of <Package> tags so for one package the result would be:Please try using: $serializer->setOption('forceEnum' => array('Package')); Stephan