how can i use preg_match and get value?
<p>i am using this code and its getting No ending delimiter '/' found </p>

<pre><code>if (preg_match("/", $desp))
{
    $dp = explode("/",$desp);

    $dp1 = $dp[0];
    $dp2 = $dp[1];
}
</code></pre>

<p>in <code>$desp</code> i have value like <code>abc/xyz</code> then it should be like </p>

<pre><code>$dp1 = abc
$dp2 = xyz
</code></pre>

<p>so what is the right code thnx.</p>
