|
Arrays |
In our previous post we've seen that values can be stored in variables. But what if you want to group a set of variables into 1 variable. For this case we can use an array. You can see an array as something like you filesystem (Windows Explorer or Mac Finder). It has a top-level folder and can nest various subitems. For instance you can have an array with categories in 1 single variable called $categories. We would set it up like this: ... Read more >>
|
Variables and constants |
This is the chapter where things are going to get exciting; PHP has 2 default placeholders in which it can store data these are the variable and the constant. The main difference between these 2 is that the value of a variable can be changed during code execution, while the one of a constant will always remain the same. So the main question you should ask yourself during creation of your code (or even better, before you start coding) is; will thi... Read more >>
|
What is HTML and what is it used for? |
HTML is an abbreviation for HyperText Markup Language, so to translate this to human language you might say that HTML can be used to structure the content of a page. And the usual usage would be a webpage.You can start writing HTML from any text editor (usually not from a word processor) like Notepad or vi. When you are done typing your file you can save it with the extension 'html' i.e. 'myfirsthtmlpage.html'.If you are using a graphical environ... Read more >>
|
Writing your first PHP code - Hello World |
Almost every coding course starts with it, the all-famous Hello World program. All it needs to do is display the message "Hello World" on the screen using the language you are starting out to learn. To get started you will need a text editor (not a word processor) and write the following lines in a new document: Hello World 1 2 3 <? echo "Hello World"; ?> Now save this file to the root of your ... Read more >>
|
What is PHP and what do I need to use it? |
In this course we will explain what the PHP language is and for which purposes you can use it. We will also cover the easiest and fastest way to setup your PHP environment to get you started at creating your own scripts. After completing this course you should be capable of setting up a working PHP environment and knowing what you can do with it. In the following courses we will cover how to use the PHP language. PHP is a server side language wh... Read more >>