CODIFICATION
The
PHP coding follows, as in all programming languages, some basic and fundamental rules.
To write code in
PHP you need to use an editor, which, depending on your level of knowledge, you can use a simple text editor.
To run a written code, you will need to have an appropriate environment and a browser.
The environment will support the
PHP language.
The browser will be, in charge of, executing the code then written.
The
PHP code is always delimited by the two tags:
<?php
// This is a single-line comment
# This is also a single-line comment
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Embedded comments are important resources
for identifying parts of the code.
comment . . . . . . . .
. . . . . . . with . . . . . . . .
. . . . . . . . . multiple . . . . . .
. . . . . lines - (C language style).
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
?>