PHP Programs

Please click on 1-2 Ads to keep this website's Study Material FREE and regularly Updated.

Program 25: Write a PHP program to format values in currency style.


<!DOCTYPE html>
	<title>PHP Progarms</title>
		$value1 = 70.41;
		$value2 = 105.35;
		echo sprintf("%1.2f" , $value1+$value2) . "\n"; 

If you have any suggestion or found any error in the above program, then do let us know at [email protected] or just comment below.