title: string to array conversion using php
body: <p>I have a string like following...</p>
  
  <pre><code>Array ([product_name] =&gt; this is a product [product_desc] =&gt; some descripyion [cat_id] =&gt; 3)
  </code></pre>
  
  <p>This is looking like as an array but this is a string. If I use echo then it prints the same result.</p>
  
  <pre><code>$someVariable = "Array ([product_name] =&gt; this is a product [product_desc] =&gt; some descripyion [cat_id] =&gt; 3)";
  
  echo $someVariable;
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Array ([product_name] =&gt; this is a product [product_desc] =&gt; some descripyion [cat_id] =&gt; 3)
  </code></pre>
  
  <p>I need it to convert to an array so that I can do the following..</p>
  
  <pre><code>echo $someVariable['product_name'];
  </code></pre>
  
  <p>and get the following result</p>
  
  <pre><code>this is a product
  </code></pre>
  
  <p>Is there any way to do this ?</p>
  
  <p>Thanks</p>