I have array like below
Array
(
    [@attributes] => Array
        (
            [Id] => 925343664
            [FloorplanID] => 617454
            [BuildingID] => 
        )
    [Unit] => Array
        (
        )
    [Comment] => Array
        (
        )
    [Availability] => Array
        (
            [VacancyClass] => Occupied
            [MadeReadyDate] => Array
                (
                    [@attributes] => Array
                        (
                            [Month] => 1
                            [Day] => 24
                            [Year] => 2016
                        )
                )
        )
)
I want to convert this array in to SimpleXMLElement Object like below
SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [Id] => 925832659
            [FloorplanID] => 617454
            [BuildingID] => 
        )
    [Unit] => SimpleXMLElement Object
        (
        )
    [Comment] => SimpleXMLElement Object
        (
        )
    [Availability] => SimpleXMLElement Object
        (
            [VacancyClass] => Occupied
            [MadeReadyDate] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [Month] => 1
                            [Day] => 12
                            [Year] => 2016
                        )
                )
        )
)
I tried with some googling but i didn't find any solution How can i do this ? Can anyone have solution for this ?
 
    