© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
A. VasilevPHP by Examplehttps://doi.org/10.1007/979-8-8688-0258-4_12

12. Using PHP

Alex Vasilev1  
(1)
Department of Software Systems and Technologies, Taras Shevchenko National University of Kyiv, Kyiv, Ukraine
 

Why must you needlessly complicate everything?

ALF (TV series)

Unlike most other popular languages, PHP is not used “on its own.” It is used “in a context.” PHP was developed for creating web programs or scripts. Accordingly, PHP is designed for web programming. Next, let’s look at some simple tasks and situations that explain how PHP code can be used in web development.

A Script in an HTML Document

Perhaps the most straightforward situation is when PHP ...

Get PHP by Example: A Practical Guide to Creating Web Applications with PHP 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.