splitting the variable in two
<p>$params is my variable and it has following contents</p>

<pre><code>$params = (fld_first_name like "Umesh") and (fld_date &gt;="2012-06-01") and (fld_date &lt;="2012-06-28") and (fld_status="Completed") and (fld_city ="8")having sum(tblordereditems.fld_product_quantity) =11
</code></pre>

<p>Here I want to split into two variables <code>$a</code> and <code>$b</code> from having so my expect it to be like this </p>

<pre><code>$a = (fld_first_name like "Umesh") and (fld_date &gt;="2012-06-01") and (fld_date &lt;="2012-06-28") and (fld_status="Completed") and (fld_city ="8")
</code></pre>

<p>and</p>

<pre><code>$b = having sum(tblordereditems.fld_product_quantity) =11
</code></pre>

<p>So can anyone help me to split it</p>
