Remove specific text from input data

I have a script like this

function convertUrl($originalUrl){
$tmp1 = substr($originalUrl,0, strrpos($originalUrl,"/"));
$tmp2 = substr($tmp1,0, strrpos($tmp1,"/"));
$tmp3 = substr($originalUrl, strrpos($originalUrl,"/"), strlen($originalUrl));
return $tmp2 . $tmp3;}
echo convertUrl("siteurl/id124536/05/how_to_make_a_php_site");
Code (markup):
The function should remove some specific text from url like:

siteurl/id124536**/05**/how_to_make_a_php_site
Now I want, when I input...

Remove specific text from input data

from JavaScript http://ift.tt/1XoPZZi
via IFTTT
Previous
Next Post »
Thanks for your comment