Home
Networking
Cisco
Cisco Network & Lab
Cisco Exams
Others
Microsoft
Windows
Windows Servers
SQL Servers
Linux
Ubuntu
RedHat
SUSE
Programming
HTML
CSS
Java Script
JQuery
XML
PHP
ASP.Net
C#
General Knowledge
News
Services
Computer Services
Networking Services
Web Services
Software Development Services
CCTV Services
Email
IT & Mobile Shops
Shop1
Shop2
Thursday, August 14, 2014
Function With Return Value In php
<?phpfunction add($num1, $num2){
$result = $num1 + $num2;
return $result;
}
function divide($num1, $num2){
$result = $num1/$num2;
return $result;
}
echo $sum = add(100,100) - divide(50,2);
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment