title: How to convert curl xml response into array in php?
body: <p>I am using curl in my project. When i am sending request, the response is coming in the form of XML as bellow. How can i convert this xml into array to present in the web page.</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;OTA_HotelAvailRS Version="1.0"&gt;
        &lt;Success Id="140948"/&gt;
         &lt;Properties&gt;
           &lt;Property HotelCityCode="ELS" HotelCode="18918" HotelName="Premier Hotel Regent - Demo"&gt;
             &lt;RelativePosition Direction="" Distance="0" DistanceUnitName=""/&gt;
             &lt;EssentialInfo&gt;
             &lt;/EssentialInfo&gt;
             &lt;RoomStays&gt;
                  &lt;RoomStay&gt;
                       &lt;RatePlans&gt;
                            &lt;RatePlan RatePlanCode="50010"/&gt;
                       &lt;/RatePlans&gt;
                       &lt;RoomRates&gt;
                            &lt;RoomRate&gt;
                                 &lt;Rates&gt;
                                      &lt;Rate EffectiveDate="2011-10-14" ExpireDate="2011-10-15"&gt;
                                           &lt;Base Amount="114.00" CurrencyCode="EUR"/&gt;
  
                                           &lt;RateDescription Adults="1" Availability="A" Children="0" RoomNum="1"&gt;
                                                Standard
                                           &lt;/RateDescription&gt;
                                      &lt;/Rate&gt;
                                 &lt;/Rates&gt;
                            &lt;/RoomRate&gt;
                       &lt;/RoomRates&gt;
                       &lt;Meals Description="Breakfast Buffet" MealType="Breakfast"/&gt;
                  &lt;/RoomStay&gt;
             &lt;/RoomStays&gt;
             &lt;Promotions/&gt;
             &lt;AdditionalInfo&gt;
                  &lt;HotelStarDetail rating="3"/&gt;
                  &lt;HotelImages&gt;
                       &lt;HotelImage Type="" URL="http://image1.urlforimages.com/1204258guest.jpg"/&gt;
                  &lt;/HotelImages&gt;
                  &lt;HotelDescription&gt;
                       &lt;LongDescription&gt; description&lt;/LongDescription&gt;
                  &lt;/HotelDescription&gt;
             &lt;/AdditionalInfo&gt;
        &lt;/Property&gt;          
   &lt;/Properties&gt;
  </code></pre>
  
  <p></p>