PHP Programing language

Which type Operate for Function with two Parameter
Previous Home Next
<html>
<head>
<title>Function with two parameters</title>
</head>
<body>
<?
function addNums( $a1, $a2 ) {
    $re = $a1 + $a2;
    $ret = "<table border=\"1\">";
    $ret .= "<tr><td>number 1: </td><td>$num1 </td></tr>";
    $ret .= "<tr><td>number 2: </td><td>$num2 </td></tr>";
    $ret .= "<tr><td>result: </td><td>$result</td></tr>";
    $ret .= "</table>";
    return $ret;
}

print addNums (100, 200);
?>
  
</body>
</html>

 

Output:

Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: