Thread: =o.. Ideas?
View Single Post
  #2  
Old 10-07-2006, 09:02 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by KuJi View Post
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]); 
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote