An Update to the intro to PHP guide. Quick Little Review. (#33961)

* Update index.md

* Update index.md
This commit is contained in:
Smith Nkereuwem
2019-03-27 02:14:14 +01:00
committed by Randell Dawson
parent a585eef1f7
commit 74cd81faf9

View File

@ -7,11 +7,11 @@ PHP scripts are executed on the server.
Before you continue you should have a basic understanding of the following: Before you continue you should have a basic understanding of the following:
### HTML ### HTML - A webpage's blueprint
### CSS ### CSS - A webpage's design plan and instruction
### JavaScript ### JavaScript - A webpages power worker, that makes it function dynamically.
PHP files can contain Text, HTML, CSS, JavaScript, and PHP code. PHP files can contain Text, HTML, CSS, JavaScript, and PHP code.
A PHP script is executed on the server, and the plain HTML result is sent back to the browser. A PHP script is executed on the server, and is returned to the user on the browser as just HTML markup, with some styling.
A PHP script starts with `<?php` and ends with `?>`: A PHP script starts with `<?php` and ends with `?>`:
```php ```php
@ -40,7 +40,7 @@ require 'filename.php';
?> ?>
``` ```
Below, we have an example of a simple PHP file, with a PHP script that uses a built-in PHP function "echo" to output the text "Hello World!" on a web page: Below, we have an example of a simple PHP file, with a PHP script that uses a built-in PHP function "echo" to output(echo out) the text "Hello World!" on a web page:
```php ```php
<!DOCTYPE html> <!DOCTYPE html>