Jump to content
Sign in to follow this  
aNewLyfe

Get The Last Character From a String ?

Recommended Posts

aNewLyfe

Allright, Solved :) sorry for doin non-sense :)

I have just saw StringLeft and Right :)

my question is easy as it seems.

how can i get the last character from a string ?

I will use this for _stringBetween, but i have to know last chr for make it work.

Or not ? is there a wayto do _StringBetween like :

_StringBetween($str,"MyStart",0) ?

Or, it can be First Char too, First char will be more useless.

thanks

Edited by mistakilla

:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites
aommaster

You can use stringright($string, 1) :)

Share this post


Link to post
Share on other sites
aNewLyfe

You can use stringright($string, 1) :)

thanks for answer, solved allready iam too sleepless :)


:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Share this post


Link to post
Share on other sites
aommaster

Yeah, I didn't see your edit because I probably posted just before the edit was made.

Oh, and sleepless? Been there, done that :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.