© David Powers 2019
David PowersPHP 7 Solutionshttps://doi.org/10.1007/978-1-4842-4338-1_3

3. How to Write PHP Scripts

David Powers1 
(1)
London, UK
 

This chapter offers a quick overview of how PHP works and gives you the basic rules. It’s aimed primarily at readers who have no previous experience of PHP or coding. Even if you’ve worked with PHP before, check the main headings to see what this chapter contains and brush up your knowledge on any aspects that you’re a bit hazy about.

This chapter covers
  • Understanding how PHP is structured

  • Embedding PHP in a web page

  • Storing data in variables and arrays

  • Getting PHP to make decisions

  • Looping through repetitive tasks

  • Using functions for preset tasks

  • Displaying PHP output

  • Understanding PHP error messages

PHP: The ...

Get PHP 7 Solutions: Dynamic Web Design Made Easy 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.