Skip to content

Instantly share code, notes, and snippets.

@saaeiddev
Last active October 28, 2022 16:12
Show Gist options
  • Save saaeiddev/818746029defe8ee817cd5a81d332f05 to your computer and use it in GitHub Desktop.
Save saaeiddev/818746029defe8ee817cd5a81d332f05 to your computer and use it in GitHub Desktop.
<?php
$a = 100;
$b = 300;
$c = 700;
$d = 900;
function Plus($a , $b , $c , $d){
return $a + $b + $c + $d;
}
$r = Plus($a , $b , $c , $d);
echo $r;
echo "<br/>";
echo $r++;
echo "<br/>";
$w = 1000;
$v = 232;
$z = 121;
function New_func($w , $v , $z){
return $w * $v / $z;
}
$t = New_func($w , $v , $z);
echo $t;
echo "<br/>";
function New_func2($x , $m , $u){
return $x ** $m - $u;
}
$x = 24;
$m = 9;
$u = 5;
$g = New_func2($x , $m , $u);
echo $g;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment