Web Development(PHP) Lecture 2 Variables, Operators, Arrays, Loops
Basic Syntax (Single Line Comments) <? php //This is Single Line Comment echo "<h1> Hello </h1>"; print "Class"; ?>
Basic Syntax ( MultiLine Comments) <? php /*This is Other Comment This is multiline comment This is last line of comment*/ echo "<h1> Hello </h1>"; print "Class"; ?>
Comparison Operators (==,===) <? php $x=5; $y="Hello"; $z="hello"; if ($z===$y) { echo "Both Variables are Equals"; }else { echo "Both Variables are Not Equals"; } ?>
Array in PHP Array is the linear collection or group of multiple amount of data In php there are only dynamic array not static Array define in php : $ variablename =array();