Abstract
After reading this chapter you should be able to:
-
create and use your own user-defined functions
-
create and use a personal function library
-
understand the difference between passing arguments by value and by reference
-
understand how to give an argument of a function a default value.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
To avoid any possible confusion, the term 'user' here refers to the PHP programmer, i.e. the person who writes the PHP script. Elsewhere in this book we use the term 'user' to refer to the 'end user' of a script, i.e. the person looking at a web page in a browser.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Bramer, M. (2015). User-Defined Functions. In: Web Programming with PHP and MySQL. Springer, Cham. https://doi.org/10.1007/978-3-319-22659-0_8
Download citation
DOI: https://doi.org/10.1007/978-3-319-22659-0_8
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-22658-3
Online ISBN: 978-3-319-22659-0
eBook Packages: Computer ScienceComputer Science (R0)