How to Reverse a Number in PHP

How to reverse a number in PHP. In this tutorial,  I am going to explain how to write a program to reverse any number in PHP. Also, we reverse a number in PHP without using any in-built function.