PHP basic constructs

PHP Basic constructs

Introduction to PHP and web applications

Lesson 1 - Introduction to PHP and web applications

In this lesson, we'll introduce you to the advantages of web applications and compare them to desktop apps. You'll also learn how PHP works on server-side.
Free 55555 Written by David Capka
Installing Apache + MySQL + PHP on Windows and making an app

Lesson 2 - Installing Apache + MySQL + PHP on Windows and making an app

In this lesson, you'll learn how to install Apache, PHP and MySQL database on Windows, and create your first web app in NetBeans with the XAMPP package.
Free 55555 Written by David Capka
Variables and type system in PHP

Lesson 3 - Variables and type system in PHP

In this lesson, you'll program a few basic web applications in PHP, learn how to use variables, and learn how the dynamic type system works.
Free 55555 Written by David Capka
Strings and arrays in PHP

Lesson 4 - Strings and arrays in PHP

In this lesson, you'll learn about the different string declarations, escaping, as well as getting acquainted with the array data structure.
Free 55555 Written by David Capka
Exercises for PHP lesson 1-4

Exercises for PHP lesson 1-4

Solved programmer tasks in PHP on strings and arrays. Tasks are ordered by difficulty. Solutions are available for download.
Free 55555 Written by David Capka
Associative arrays in PHP and submitting forms

Lesson 5 - Associative arrays in PHP and submitting forms

In this lesson, we'll expand your knowledge of arrays in PHP by means of the associative array. We'll use the GET and POST methods to process user input.
Free 55555 Written by David Capka
Exercises for PHP lesson 5

Exercises for PHP lesson 5

Solved programmer tasks in PHP on associative arrays and form handling. Tasks are ordered by difficulty. Solutions are available for download.
Premium Unrated Written by David Capka
Conditions in PHP

Lesson 6 - Conditions in PHP

In this lesson, you'll learn about conditions (branching) in PHP. You'll learn about the if and else commands and improve your calculator.
Free Unrated Written by David Capka
Exercises for PHP lesson 6

Exercises for PHP lesson 6

Solved programmer tasks in PHP on conditions and branching. Tasks are ordered by difficulty. Solutions are available for download.
Premium Unrated Written by David Capka
More on Conditions in PHP - Casting, composing, and switches

Lesson 7 - More on Conditions in PHP - Casting, composing, and switches

In this lesson, we'll finish up with conditions in PHP. You'll learn about switches, how PHP performs type casts, and how to structure conditions.
Free 55555 Written by David Capka
E-mail form in PHP

Lesson 8 - E-mail form in PHP

In this lesson, we'll program a simple contact form in PHP for your website. It'll contain validation, anti-spam filters, email sending and flash messages.
Free Unrated Written by David Capka
Improving the e-mail form in PHP

Lesson 9 - Improving the e-mail form in PHP

In this lesson, we'll improve our e-mail form. You'll learn about ternary operators, how to pre-fill forms with sent values, and redirecting.
Free Unrated Written by David Capka
Putting web pages together using PHP

Lesson 10 - Putting web pages together using PHP

You'll learn how to add subpages to a layout dynamically using PHP and use the file_get_contents() and require() functions. We'll talk about web security.
Free 44444 Written by David Capka
For and while loops in PHP

Lesson 11 - For and while loops in PHP

In this lesson, you'll learn how to use for and while loops. We'll program a simple multiplication table and an exponent calculator as example programs.
Free Unrated Written by David Capka
Exercises for PHP lessons 7-11

Exercises for PHP lessons 7-11

Solved programmer tasks in PHP about loops. Tasks are ordered by difficulty. Solutions are available for download.
Premium Unrated Written by David Capka
Arrays and loops in PHP

Lesson 12 - Arrays and loops in PHP

In this lesson, we'll work with arrays and use a new kind of loop - foreach. We'll list PHP array functions, and create a multidimensional array.
Free Unrated Written by David Capka
Exercises for PHP lesson 12

Exercises for PHP lesson 12

Solved programmer tasks in PHP on loops and arrays. Tasks are ordered by difficulty. Solutions are available for download.
Premium Unrated Written by David Capka
String functions in PHP

Lesson 13 - String functions in PHP

In this lesson, we'll introduce you to string functions in PHP. You'll learn to replace substrings, search for a needle in the haystack, and split CSVs.
Free Unrated Written by David Capka
Exercises for PHP lesson 13

Exercises for PHP lesson 13

Solved programmer tasks in PHP on string functions. Tasks are ordered by difficulty. Solutions are available for download.
Premium Unrated Written by David Capka
Declaring custom functions in PHP

Lesson 14 - Declaring custom functions in PHP

In this tutorial, we'll create our own PHP functions, pass parameters to it and return a value. We'll test that on an email-sending function.
Free Unrated Written by David Capka
Exercises for PHP lesson 14

Exercises for PHP lesson 14

Solved programmer tasks in PHP on custom functions. Tasks are ordered by difficulty. Solutions are available for download.
Premium Unrated Written by David Capka
Creating libraries in PHP

Lesson 15 - Creating libraries in PHP

In this lesson, you'll learn how to logically gather functions and create your own libraries in PHP. We'll test one out on a simple sentence analyzer.
Free Unrated Written by David Capka