Quote:
Originally Posted by Chompy
explanation
|
Yes I know how substrings work, I just didn't know if you had something like
PHP Code:
temp.string = "Hi my name is Frank!";
echo(temp.string.substring(14, temp.string.length()-1);
Would return "Frank" and not "Frank!" (not sure if there'd be 0's or spaces on the end, either) since the full length is 20 but it gets reduced down to 6, then taking 1 from that gives 5, which is enough for "Frank" without the "!"