Quote:
Originally Posted by KuJi
Hello/Hi/Wow/Wierd/Yeah/How/No/Way/Roar/Why/Hey/Ya/Boo/My/Rank/is/KuJirox
How would I be able to substring to the last "/" in that statement. It can always be different so a direct substring wouldn't work.. I was thinking while (this.rank.substring("pos") >= 1) you'd resubstring it or something.
If ya got an idea how to do such, tell =o
|
I would probably do:
PHP Code:
this.txt = "Hello/Hi/Wow/Wierd/Yeah/How/No/Way/Roar/Why/Hey/Ya/Boo/My/Rank/is/KuJirox";
echo(this.txt.tokenize("/")[this.txt.tokenize().size()-1]);