How do i return last character of a string?

Hey. Im trying to output last character of a givent string

my code :

 function  lastchar($str){

}

i still havent found ):

Doesn’t appear you’ve looked either

Try google?

what would you do to get the first character? what would you do to get any range of characters?

Sponsor our Newsletter | Privacy Policy | Terms of Service