Web Programming

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

PHP Last Character in a String  Viewed 17267 time(s), 2 post(s)., 1/10/2014 3:27:58 AM - by Khalid

Khalid
Khalid 1/10/2014 3:27:58 AM

How to get the last character in a string?

This content has not been rated yet. 
113 Reputation 7 Total posts
1
Raji
Raji 1/11/2014 12:30:34 AM


substr($string, -1)

This content has not been rated yet. 
61 Reputation 12 Total posts
2