PHP

3 Ways To Add Commas To A Number In PHP

Welcome to a short tutorial on how to add commas to numbers in PHP. Need to format and present a “nice-looking” number to the users? The common ways to add commas to numbers in PHP are: Use the number_format() function. For example, $num = number_format(12345.678, 2); Use regular expressions. For example, $num = preg_replace(“/\B(?=(\d{3})+(?!\d))/”, “,”, […]

3 Ways To Add Commas To A Number In PHP Read More »

Forgotten Password Recovery In PHP MySQL (Free Download)

Welcome to a quick tutorial on how to create a forgotten password recovery script with PHP and MySQL. Having trouble with a system that requires manual password reset? An automated password recovery system generally involves 3 steps: The user accesses a “forgot password” page, enters the email, and makes a password reset request. The system

Forgotten Password Recovery In PHP MySQL (Free Download) Read More »