IHYPRESS.NET
PHP
HOME | ASP | C | CSS | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Earn Free Bitcoin
PHP ❯ Functions
<07>
<?php function sum($x, $y) { $total = $x + $y; return $total; } $n = 0; echo "<div style='font-size:22px;color:#0000cc;'>"; echo "Before the function, n = ". $n ."<br>"; $n = sum(3, 4); echo "After the function, n = " . $n; echo "</div>"; ?>
Before the function, n = 0
After the function, n = 7
COPYRIGHT © 2015-2024 IHYPRESS.NET. A DIVISION OF IHY PRESS. ALL RIGHTS RESERVED.