How to Convert numbers or Indian Currency into words in PHP
If we are creating an application that deals with financial stuff or billing, then most probably we face a situation where we have to convert numerical value or amount into words.
In this article, we will cover this topic by simply writing a PHP function and we will also create an HTML form for testing purposes and we will see it in the live demo as in the previous article.

So, for converting a number into words simply we need a PHP function That can convert a number into words with array logic
Let's convert the number 1200.85 into words,
The output of the above code will be:
One Thousand Eight Hundred Point Eight Five
Now think about converting the same amount into Indian currency
Let's Create a function
The output of the above code will be:
One Thousand Two Hundred Rupees And Eight Five Paise
Now we will create an HTML form for testing our code by changing the value