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):
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
Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon