How to Check Last String and reverse using PHP

reverse string in php without using function
reverse string in php using loop
php reverse words in a string
reverse number in php without using function
php string length
php string replace
php substring
palindrome without using string function in php