Skip to main content

Functions

  • Chapter
  • First Online:
Programming in HTML and PHP

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 4383 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 2.

    See, for example, http://www.paroscientific.com/dewpoint.htm.

  3. 3.

    Legendre polynomials are solutions to Legendre’s differential equation.

  4. 4.

    Earth is not a perfect sphere, but that fact can be overlooked for this calculation.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to David R. Brooks .

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics