Shared publicly  - 
How to reverse a number in PHP without using function?
How to reverse number in PHP without using function: Declare a variable to store the reversed number, and initially assign zero to it. Now, extract the last digit from the original number, multiply the reverse numer with 10, add the extracted digit to reversed number, and divide the original number by 10. Repeat this iteration until original number becomes zero.
Add a comment...