PHP 7.1.0 Release Candidate 3 Released

Функции

Съдържание

add a note add a note

User Contributed Notes 1 note

up
-109
m_ilyas at outlook dot com
6 months ago
\\Here is simplest php function example
<?php
   
function swap($a,$b){
        print
nl2br("Before swapping\n");
        print
nl2br("a = $a and b = $b \n\n\n");
       
$a = $a + $b; // 30 = 10 + 20
       
$b = $a - $b;
       
$a = $a - $b;
        print
nl2br("After swapping\n");
        print
nl2br("a = $a and b = $b \n");
    }
   
swap(10,20);
   
?>
To Top