Abstract
This chapter introduces the concept of user-defined functions in programming and shows how to use functions in PHP scripts. A summary of PHP built-in math constants and functions is provided.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Note that BASIC, which was for many years the introductory programming language of choice, and which is still used today, does not support this “walled-off” memory model for functions.
- 2.
See, for example, http://www.paroscientific.com/dewpoint.htm.
- 3.
Legendre polynomials are solutions to Legendre’s differential equation.
- 4.
Earth is not a perfect sphere, but that fact can be overlooked for this calculation.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this chapter
Cite this chapter
Brooks, D.R. (2017). Functions. In: Programming in HTML and PHP. Undergraduate Topics in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-56973-4_7
Download citation
DOI: https://doi.org/10.1007/978-3-319-56973-4_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-56972-7
Online ISBN: 978-3-319-56973-4
eBook Packages: Computer ScienceComputer Science (R0)