PHP Programs

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

Program 30: Write a PHP program to swap two numbers.


<!DOCTYPE html>
	<title>PHP Programs</title>
		$first = 65;  
		$second = 88;  

		$third = $first;  
		$first = $second;  
		$second = $third;  

		echo "After swapping:<br><br>";  
		echo "First Number  = ".$first."  Second Number = ".$second;  

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.