Summary

In this chapter, we learned the importance of databases and how to use them from our web application: from setting up the connection using PDO and creating and fetching data on demand to constructing more complex queries that fulfill our needs. With all of this, our application looks way more useful now than when it was completely static.

In the next chapter, we will discover how to apply the most important design patterns for web applications through Model View Controller (MVC). You will gain a sense of clarity in your code when you organize your application in this way.

Get Learning PHP 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.