Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 18th, 2018
66
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
public function somar($n1, $n2, $operacao){
switch($operacao){
case "somar":
$result = $n1 + $n2;
break;
case "subtrair":
$result = $n1 - $n2;
break;
}
return $result;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
basis code school
Arduino | 8 min ago | 1.21 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 19 min ago | 0.38 KB
hiveReader
Lua | 33 min ago | 1.10 KB
madness
GetText | 42 min ago | 0.37 KB
[SvodkaDZ] Config Excample Json File
JSON | 48 min ago | 2.71 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 56 min ago | 0.39 KB
Untitled
C# | 1 hour ago | 0.24 KB
immediately invoked lambda expression
C++ | 1 hour ago | 7.73 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!