PHP (recursive acronym for “PHP: Hypertext Preprocessor”) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.
Before we get started coding with PHP I suggest to check the instruction page to see what you have to do to be able to run PHP in your computer. and the tools that you will need to code the examples that you will meet on each lesson.
Variables are used for storing values, such as numbers, strings or function results, so that they can be used many times in a script. We will now return to the point, know and use different variables.
The easiest way to understand this variables is to write the following code and run it in your browser.
Maybe you have already seen a script and you’ve noticed things like,
Loops allow you to browse a wealth of information stored in a table, a text file, a database and display them or treat them.
A cookie is often used to identify a user. Cookies must be sent before any calls or other html output. They are stored on the computer of your visitor, and can insert a small amount of information.
We will now learn how to manipulate dates in various formats and how to display them.
There are tow types of arrays nominatives and associative to create an array we will use the array() function.
You may need to work with text files to store various information for your site, this course will serve to better understand the various uses of functions.