$string = "pre replace post"; $i = 4; $j = 11; $length = $j - $i; $result = substr($string,0,$i) . "x" x $length . substr($string,$j); print "$result\n";
In reply to Re: another tricky one from lol
by csotzing
in thread another tricky one from lol
by lolly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |