© 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_5

5. Functions

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

—I notice you spend a lot of time fixing stuff, Willie.

—That’s because you spend a lot of time breaking stuff, Alf.

—Well, it’s nice that our hobbies are so compatible.

ALF (TV series)

This chapter introduces functions, which play an essential role in any programming language. The PHP language is not an exception. You learn how to create functions, how they can be used, and what is unique about functions in the PHP language.

Creating Functions

Very often ...

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.