You're late.
i'd assumed that he would have updated the OP with a more recent code
the sad thing is i actually did read the thread before i posted that
edit:
Just a note to OP, getSubStr has three parameters.
sourceString startCharacter endCharacter
It basically returns the characters in sourceString from startCharacter to endCharacter.
so if i did
echo(getSubStr("Woah! That's pretty neat.", 0, 4));, it'd echo "Woah!".