Abstract
Functions are a way to structure code that is used several times into a convenient structure. This is a great way to reduce code duplication and increase reusability. There are more than 1000 built-in functions in PHP and user-defined functions can be declared in the main script or in an include file, and it is up to the script developer to make sure the correct files are included before a function is called.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Frank M. Kromann
About this chapter
Cite this chapter
Kromann, F.M. (2016). Functions. In: PHP and MySQL Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0605-8_11
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0605-8_11
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0606-5
Online ISBN: 978-1-4842-0605-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)