The Wayback Machine - https://web.archive.org/web/20161007153513/http://php.net/manual/en/language.functions.php
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.