fix spelling error (#19623)

This commit is contained in:
Thomas Papapaschos
2018-10-17 21:18:27 +03:00
committed by Eric Leung
parent 18fee305d3
commit 439f2662b4

View File

@ -1,10 +1,10 @@
--- ---
title: PHP Syantax and Comments title: PHP Syntax and Comments
--- ---
### PHP Syantx ### PHP Syntax
The structure of a PHP syantax somewhat looks like: The structure of a PHP syntax somewhat looks like:
```shell ```shell
<?php <?php
@ -13,16 +13,18 @@ The structure of a PHP syantax somewhat looks like:
?> ?>
``` ```
This PHP script can be placed anywhere in the document. This PHP script can be placed anywhere in the document.
A PHP file generally have HTML tags, and some scripting code . A PHP file generally has HTML tags, and some scripting code.
The default file extension for PHP files is `.php`. The default file extension for PHP files is `.php`.
### How to make comments in PHP? ### How to make comments in PHP?
A comment in PHP code is a line that is not read/executed as part of the program. Its only purpose is to be read by someone who is looking at the code. A comment in PHP code is a line that is not read/executed as part of the program. Its only purpose is to be read by someone who is looking at the code.
In PHP, comments can be make by two ways either single lined or multi-lined. In PHP, comments can be made by two ways either single-lined or multi-lined.
The code snippet given below explains it:
The code snippet given below explains multiple ways of commenting:
```shell ```shell
<? <?
@ -31,7 +33,7 @@ The code snippet given below explains it:
# This is also a single-line comment # This is also a single-line comment
/* /*
This is a multiple-lines comment block This is a multiple-line comment block
that spans over multiple that spans over multiple
lines lines
*/ */