Re: Array and Object
| From: | Eric Butera | Date: | Mon, 24 Mar 2008 16:56:36 +0000 |
| Subject: | Re: Array and Object | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272038@lists.php.net to get a copy of this message | ||
On Mon, Mar 24, 2008 at 12:50 PM, VamVan <vamseevan@gmail.com> wrote:
> Hello All,
>
> I am having an array structure as displayed below, The title is the
> key and value is the simplexmlelementobject.
>
> [Advanced Virtualization Technologies in Workstation 6-20080320 1604]
> => SimpleXMLElement Object
> (
> [recordingID] => 932467
> [hostWebExID] => marketingprograms
> [name] => Title
> [createTime] => 03/20/2008 09:04:42
> [timeZoneID] => 4
> [size] => 49.441048
> [recordingType] => 0
> [duration] => 3218
> )
>
>
> I access the array $this->result["$event->eventName"] = $event;
>
> But I want to decode all the elements of the object using utf8_decode
> but still keep the same structure of the array.
> what i mean can I do this ?
>
> $this->result["$event->eventName"] = utf_iso($event);
>
> I appreciate if anyone can help me with this.
>
> Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Can you jump upstream and decode it before you parse the xml?