title: converting array into string in PHP
body: <p>I am trying to convert array into string<br>
   array converted from xml</p>
  
  <pre><code> [ChargeableRateInfo] =&gt; Array(
      [NightlyRatesPerRoom] =&gt; Array
      (
        [NightlyRate] =&gt; Array
        (
          [0] =&gt; Array()
          [1] =&gt; Array()
          [0_attr] =&gt; Array(
            [promo] =&gt; false
            [rate] =&gt; 182.46
            [baseRate] =&gt; 182.46
          )
          [1_attr] =&gt; Array(
            [promo] =&gt; false
            [rate] =&gt; 182.46
            [baseRate] =&gt; 182.46
          )
          [2] =&gt; Array()
        )
     )
  )
  </code></pre>
  
  <p>My try  was :</p>
  
  <pre><code>foreach ($my_array['ChargeableRateInfo']['NightlyRatesPerRoom'] ['NightlyRate'] as $rates){
     print_r($rates['1_attr']['baseRate']);
     }
  </code></pre>
  
  <p>I used xml2array to convert xml with Attributes into array</p>