Quick Notes Page 1
Quick Notes Page 1
DOCTYPE html>
<html lang="en">
Creating our first PHP file
<head>
Create a new file with the name index.php. Yes, this time, it is <meta charset="UTF-8">
<meta name="viewport"
PHP. To get the VSCode BoilerPlate Tap ! and then press enter. content="width=device-width, initial-scale=1.0">
Now create a div container in the body and type "This is my <title>PHP Tutorial</title>
</head>
first PHP website." All right, now go to your browser type <body>
localhost/cwh. You did it. Congratulations on creating your first <div class="container">
This is my first php website
PHP website.
</div>
</body>
</html>
<?php
To Print String Type Variables We Use "ECHO" function echo "Hello world and this is printed
echo is, it outputs one or more strings using PHP";
?>
/*
line
comment
*/
// Arithmetic Operators
Operator Description Example Result
+ Addition $x + $y Sum of $x and $y
- Subtraction $x - $y Difference of $x and $y.
echo "<br>";
* Multiplication $x * $y Product of $x and $y.
/ Division $x / $y Quotient of $x and $y
echo "<br>";
echo "<br>";
echo "<br>";
echo "<br>";