Before moving on, let’s take a quick look at a working PHP application.

We’re going to show you an example of PHP being used on the back-end to create a dynamic website sent to the browser. When the visitor to the website, in this case you, modifies the task list, a request is made for a new web page, the PHP code runs again in the back-end and delivers a new version of the site with updated HTML.

The todo list example is frequently used when demonstrating a web framework or technology. It provides a way to exhibit how the CRUD (Create, Read, Update, Delete) behaviors are implemented using a specific technology.

Within a todo app, the functionality is typically:

  • Add new items to the list (Create)
  • View the existing list (Read)
  • Change the completion status of each item (Update)
  • Remove items from the list (Delete)


Try out the functionality of the todo app in the browser window. Don’t worry about understanding all of the code yet, this is just to give you an idea of how PHP works. As you learn more about PHP, come back to this example and think about how you could create a similar application.

Type something in the box and “Add” it to your task list. See how you can create a whole list of items?

Now mark some of them complete and delete some of them.

Continue to the next exercise when you are ready.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?