clearing the link id
<p>if we have</p>

<pre><code>$id = 39827-key1-key2-key3
</code></pre>

<p>and we want to show only the number or anything before (-)
then by using</p>

<pre><code>$realid = array_shift(explode("-", $id));
</code></pre>

<p>we will get  <code>echo $realid; // 39827</code></p>

<p><em>Now my problem is as following !</em></p>

<p>if we have <code>$id = key1/key2</code>
and i want any way that remove the whole part  <code>key1/</code> and gives me only <code>key2</code></p>

<p>how can i do it?</p>
