SIMPLE PHP
PHP BASIC COURSE
Free PHP basics course available to everyone – free of charge. Please, enjoy and share if you liked it.
CHAPTER ONE:
1. Installing the PHP development environment.
This lesson shows you how to install and run a PHP server and how to pick a code editor for further use.
2. First line of code in PHP.
In this one, you create a new project, first PHP file and write the very first line of code in PHP.
3. Variables and constants.
This is where the development starts. A good understanding of this concept is crucial for fluent programming.
4. Operators.
Now that you know variables and constants, it’s time to become familiar with operators. This is how you can manipulate values and check conditions.
5. Comments.
Learn how to document your work with comments. You can use them also to exclude parts of the code from execution.
6. Debugging.
Since you write some code, learn how to check how it works. It’s all about finding out why code isn’t working as expected. In the programming world, it’s called debugging.
CHAPTER TWO:
1. Conditions in PHP.
This lesson teaches you how you can check the current state of variables and by comparing them with values, choose different code to execute.
2. While loop and do…while loop.
In this lesson, you will learn how loops in PHP work. We cover while, do… while and nested loops. You may check the condition as you did with the IF statement but execute the code as long as the condition is fulfilled.
3. Arrays.
Those supercharged variables are designed to store multiple data properties under one container. You may have multi-dimensional arrays, so you can store multiple arrays under another one. Pretty awesome!
4. For and foreach loops.
Similar to while loops, slightly different structured. Get familiar with very popular iterative loops and use them easily with arrays to iterate through all elements.
5.Functions.
Learn how to easily and effectively reuse written code. You may select part of your code and give it a unique name. Then it’s usable the same way as any other function built into the PHP.
CHAPTER THREE:
1.Superglobal variables.
They are called superglobals as they are accessible from any place in your code. There is a complete set of superglobal variables – check them out in this article.
2. User input in PHP.
This one is all regarding reading and processing user input on the backend side. Involves mainly HTML forms and URLs processing.
3. Include and require.
Learn how to include files with PHP and HTML code. Distribute your code among many files so it is easy to maintain.
4. Files in PHP. It’s all about file creating, deleting, reading and writing. The ultimate guide on how to handle files with the use of PHP is here.
5. PHP Random.
Learn all the basic needs of a random number generation in PHP. Check out how to generate a random number, string, password or username. In addition, you may randomly select a number of elements from the array.
BONUSES:
Is PHP dead?
Is it worth to learn it? Check out this extensive post with technical analysis on is it worth to learn PHP nowadays. Must rea
Secure and simple login page in PHP.
This is a step by step tutorial on how to create a simple and secure login page with the use of a PHP.
Start your coding lesson in the next post...
Nice... I have so much love for coding
ReplyDeleteI enjoyed reading from your site more is needed
ReplyDelete