- Text Editor - Notepad/Notepad++ will do. This will serve as our coding environment.
- WAMP - This will be our web server. This is were we will be saving our website files and save our data to the database.
- Web Browser - You can use any browser.
- PHP is known as a server-sided scripting language.
- PHP stands for is "Hypertext Pre-processor".
- php is use to make dynamic and interactive Web pages.
Simple php script:-
Syntax:
PHP script starts with <?php and ends with ?>
Comments:
// This is a single-line comment
# This is a single-line comment
/*
This is a
multiple-lines
comment
*/
Declaring PHP variable:
- A variable starts with the $ sign
- echo is use to print the value
<?php
$txt = "hi";
$n = 20.00;
echo $hi;
echo $n;
?>
No comments:
Post a Comment