PHP Function for Number to Word Conversion (Indian numbering system)

PHP Function for Numbers to Word Conversion function displaywords($number){ $no = (int)floor($number); $point = (int)round(($number – $no) * 100); $hundred = null; $digits_1 = strlen($no); $i = 0; $str = array(); $words = array(‘0’ => ”,…

How to Check a string contains a specific word in PHP (with Multiple Answers)

PHP have many functions to find the occurrence of word. strpos() $x = ‘Where are you?’; if (strpos($x, ‘are’) !== false) { echo ‘specific Word exists’; } mb_stpos() if (mb_strpos($x,…

How to integrate Google reCAPTCHA in your Website (PHP)

Here i am going to show you how to integrate Google reCAPTCHA in your Sites. Why Need Google reCAPTCHA : Google reCAPTCHA is a free service that protects your website…

How to Formatting a number with leading Zeros in PHP

In this post i show how to display number with leading zero like date and time. Following PHP Function full fill our Needs sprintf() Why use sprintf() It’s Return a…