I wanna be in the thread too.
function charabunga($string, $start, $length, $char)
{
$start=$start+$length;
if($start<strlen($string)) {
$string=substr($string, 0, $start).$char.substr($string, $start));
return addCharr($string, $start, $length, $char);
} else {
if(strlen($string)==0) {
return false;
} else {
return $string;
}
}
}
Use wordwrap though, mine's effectively just going to be a slower implementation unless of course you have a perchant for funtions with cool names. With mine you could write this.
if($ninja_turtle=charabunga($string)) {
die('shredder');
}
😃 I'm sure that sounds a lot cooler in my head than it really is.