How could I split value in php?
<p>I have this value like this in PHP file :</p>

<pre><code>{First=itema,Fourth=10000.0,Second=10,Third=1000},{First=itemb,Fourth=12000.0,Second=12,Third=1000}
</code></pre>

<p>How can I split this values 'till I get values like this :</p>

<pre><code>{itema,10000,10,100} AND {itemb,12000,12,1000}
</code></pre>

<p>I got that value from method POST in my android apps and I get in my PHP file like this :</p>

<pre><code>&lt;?php


$str = str_replace(array('[',']'), '', $_POST['value1']);
$str = preg_replace('/\s+/', '', $str);

echo $str;

?&gt;
</code></pre>

<p>And, this is my code in android apps :</p>

<pre><code>try {

            httpclient = new DefaultHttpClient();
            httppost = new HttpPost("http://192.168.107.87/final-sis/order.php");

            nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);

            nameValuePairs.add(new BasicNameValuePair("value1", list.toString()));

            httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
            response=httpclient.execute(httppost);
            Log.d("Value Price: ", httppost.toString());
            HttpEntity entity=response.getEntity();
            feedback = EntityUtils.toString(entity).trim();
            Log.d("FeedBack", feedback);

        }catch (Exception e){

        }
</code></pre>

<p>This is link about my code completely :</p>

<p><a href="https://stackoverflow.com/questions/35693383/how-can-i-store-my-arraylist-values-to-mysql-databases/35693527?noredirect=1#comment59157636_35693527">How can I store my ArrayList values to MySQL databases?</a>?</p>

<p>I have been asking before but I couldn't found best way.</p>

<p>Thank you.</p>