trim_mid v 1.0
By Renato Lins
It can be used to replace multiple unwanted chars from a midle of a
the 3 params are.
$str is the original string
$from is the chars you want to replace
$to is the string you want to change from $from.
Ex: "myemail@@mydomain.com" becomes "email@example.com" after
$x := trim_mid("myemail@@mydomain.com","@@","@");
while( strpos($str,$from) )
Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.