jonoc33 Posted November 28, 2008 Share Posted November 28, 2008 Say if I had a variable: $rank = "Fighters"; How would I get retrieve the last letter? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted November 28, 2008 Share Posted November 28, 2008 <?php $rank = "Fighters"; echo substr($rank, -1); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.