Can you be more specific with what you want to do on #1. Will you be doing the replace only once, or something like every 5 characters add in a character?
Every xx characters add in a character is what I want to do.
For #2 would this work to check if $variable has at least one letter or number?
if(eregi('^[_a-zA-Z][0-9]$',$variable) {
// code here
}
Thanks for the replies! 🙂