NEP -PHP PROGRAMMING

PROGRAM 1 PROGRAM 2 PROGRAM 3 PROGRAM 4 PROGRAM 5 PROGRAM 6 PROGRAM 7 PROGRAM 8 PROGRAM 9 PROGRAM 10 PROGRAM 11 PROGRAM 12 PROGRAM 13 PROGRAM 14

PART B

. . .

 

    
 
1.Write a PHP script to swap two numbers


   < ? php  
    $a = 45;  
    $b = 78; 

    echo "Befor swapping:<br><br>";  
    echo "a =".$a."  b=".$b;  
    // Swapping Logic  
    $third = $a;  
    $a = $b;  
    $b = $third;  
    echo "<br><br>After swapping:<br><br>";  
    echo "a =".$a."  b=".$b;  
    ? >