How does the GET method pass values from one page to the next?

GET means that form data is to be encoded (by a browser) into a URL. We can change values by typing into the URL address. It is limited in number of characters that could be passed. Reason to use it is because you can bookmark things.

How does the POST method pass values from one page to the next?

POST means that the data is to appear within a message body, so POST is sending values in a more secure way. We can POST much more info then GET.

What is a php variable?

Variables are containers used to store values. These values can be text, numbers, or more complex ones. There are eight types of variables in the PHP language.

How can you document your code?

Documenting your code makes it more reusable, and easier to maintain.There are some fundamental rules you should be aware of when creating these comment blocks:

1. Every comment block must begin with a forward slash (/) followed by two asterisks (**).

2. Subsequent lines begin with an asterisk (*), which is indented to appear under the first asterisk of the opening line.

3. The end of the block is defined by an asterisk (*), followed by a forward slash (/).

There are three types of comment blocks you may use here:

1. Class comment block: This comment block provides a general overview of the class, its purpose, its authors and its version number. It typically appears right at the top of the class definition.

2. Variable comment block: This comment block is used to document class variables or properties; it provides information on the variable type, its raison d'etre, and references to other class variables that it is related to.

3. Method comment block: This comment block documents class methods, providing detailed information on method arguments, return values and public/private access.