Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying The PHP Workshop
  • Table Of Contents Toc
The PHP Workshop

The PHP Workshop

By : Martinez, Busuioc, Carr, Gray, Joshi, McCollum, McLeod, Tonu
4 (4)
close
close
The PHP Workshop

The PHP Workshop

4 (4)
By: Martinez, Busuioc, Carr, Gray, Joshi, McCollum, McLeod, Tonu

Overview of this book

Do you want to build your own websites, but have never really been confident enough to turn your ideas into real projects? If your web development skills are a bit rusty, or if you've simply never programmed before, The PHP Workshop will show you how to build dynamic websites using PHP with the help of engaging examples and challenging activities. This PHP tutorial starts with an introduction to PHP, getting you set up with a productive development environment. You will write, execute, and troubleshoot your first PHP script using a built-in templating engine and server. Next, you'll learn about variables and data types, and see how conditions and loops help control the flow of a PHP program. Progressing through the chapters, you'll use HTTP methods to turn your PHP scripts into web apps, persist data by connecting to an external database, handle application errors, and improve functionality by using third-party packages. By the end of this Workshop, you'll be well-versed in web application development, and have the knowledge and skills to creatively tackle your own ambitious projects with PHP.
Table of Contents (12 chapters)
close
close

Summary

In this chapter, we learned about different PHP data types, including string, integer, float, and array. We also learned about different ways of declaring strings, including the heredoc and nowdoc syntaxes. We performed array operations in which we used indexed, associative, and multidimensional arrays and added and removed elements from arrays. We also performed type casting to change the types of variables.

In the next chapter, conditional logic will be covered. Conditionals introduce logic to your scripts and allow different actions to happen depending on different conditions; for instance, let's say you had a variable containing the word Pending and you want to show a statement only if the word is equal to Pending.

Understanding conditionals will unlock new ways of writing your code and allow further user interaction.

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
The PHP Workshop
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon