title: How extract element thats passed as array in obj and then even userdata
body: <p>I dont even know how to ask this question.
  i have an array that has obj inside.</p>
  <p>i can manage all fine with that</p>
  <pre><code>foreach ($transactions as $obj) {
      
      if($obj-&gt;status == 'COMPLETED'){
          // Here you can access to every object value in the way that you want
          echo $obj-&gt;amount;
          echo '&lt;/br&gt;';
          echo $obj-&gt;status;
          echo '&lt;/br&gt;';
          echo $obj-&gt;customer-&gt;name;
          echo '&lt;/br&gt;';
          echo $obj-&gt;customer-&gt;id;
          echo '&lt;/br&gt;';
          echo $obj-&gt;merchant_data;
      }
  }
  </code></pre>
  <p>and it will give out everything like i want, my problem starts because of the
  $obj-&gt;merchant_data;  beacause it a string(dont know how to call it)</p>
  <p>But it comes out as:</p>
  <pre><code>id=44&amp;fn=First Name&amp;mail=email@gmail.com&amp;cc=Country&amp;pc=+234323242&amp;cm=&amp;anonymous=
  </code></pre>
  <p>And i need to be able to get it also as diffentent object so i can get only id, or fn or email or whatever.
  How can i get lets say the id and name
  As it comes as string i have no idea how to read it.</p>
  <p>So right now it comes then as following</p>
  <pre><code>AMOUNT
  STATUS
  NAME
  ID
  id=44&amp;fn=First Name&amp;mail=email@gmail.com&amp;cc=Country&amp;pc=+234323242&amp;cm=&amp;anonymous=
  </code></pre>
  <p>But i would like to be able to get it as following</p>
  <pre><code>AMOUNT
  STATUS
  NAME
  ID
  ID
  FN
  EMAIL
  COUNTRY
  ETC...
  </code></pre>