Discount week - December
Get up to 60 % extra points for free! More info
Save up to 80 % on our C# e-learning courses. Only this week!

PHP Basic Constructs

Learn all about the basics of the PHP programming language. This course is for absolute beginners and will give you the means to code simple web apps.

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.
Written by David Capka
Free Show description
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.
Written by David Capka
Free Show description
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.
Written by David Capka
Free Show description
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.
Written by David Capka
Free Show description
Solved tasks for PHP lesson 1-4

Exercise

Solved tasks for PHP lesson 1-4

Solved programmer tasks in PHP on strings and arrays. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
Free Show description
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.
Written by David Capka
Free Show description
Solved tasks for PHP lesson 5

Exercise

Solved tasks 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.
Written by David Capka
PRO Show description
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.
Written by David Capka
Free Show description
Solved tasks for PHP lesson 6

Exercise

Solved tasks for PHP lesson 6

Solved programmer tasks in PHP on conditions and branching. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PRO Show description
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.
Written by David Capka
Free Show description
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.
Written by David Capka
Free Show description
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.
Written by David Capka
Free Show description
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.
Written by David Capka
Free Show description
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.
Written by David Capka
Free Show description
Solved tasks for PHP lessons 7-11

Exercise

Solved tasks for PHP lessons 7-11

Solved programmer tasks in PHP about loops. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PRO Show description
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.
Written by David Capka
Free Show description
Solved tasks for PHP lesson 12

Exercise

Solved tasks for PHP lesson 12

Solved programmer tasks in PHP on loops and arrays. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PROUnrated Show description
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.
Written by David Capka
Free Show description
Solved tasks for PHP lesson 13

Exercise

Solved tasks for PHP lesson 13

Solved programmer tasks in PHP on string functions. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PROUnrated Show description
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.
Written by David Capka
Free Show description
Solved tasks for PHP lesson 14

Exercise

Solved tasks for PHP lesson 14

Solved programmer tasks in PHP on custom functions. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PROUnrated Show description
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.
Written by David Capka
Free Show description
PHP Configuration (XAMPP)

PHP Configuration (XAMPP)

This tutorial teaches configuring PHP (XAMPP) for developing real projects locally. We'll create subdomains, configure emails and import large MySQL files.
Written by David Capka
PROUnrated Show description


 

Activities (10)