kks_krishna Posted April 13, 2008 Share Posted April 13, 2008 HI, How can i get last character in a String? Link to comment https://forums.phpfreaks.com/topic/100926-solved-how-to-get-last-character-in-string/ Share on other sites More sharing options...
trq Posted April 13, 2008 Share Posted April 13, 2008 <?php $s = "hello"; echo $s[strlen($s) -1]; ?> Link to comment https://forums.phpfreaks.com/topic/100926-solved-how-to-get-last-character-in-string/#findComment-516117 Share on other sites More sharing options...
kks_krishna Posted April 13, 2008 Author Share Posted April 13, 2008 Thanks Link to comment https://forums.phpfreaks.com/topic/100926-solved-how-to-get-last-character-in-string/#findComment-516123 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.