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, November 16, 2017
If Statement in PHP
<?php
$num1 = 30;
$num2 = 40;
if($num1 > $num2){
echo 'Num1 is greater than Num2!';
} else if($num1 == $num2){
echo 'Num1 and Num2 are equal!';
}else{
echo 'Num2 is greater than Num1!';
}
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment