Abstract
In this chapter we will introduce the “if” construct. All programming languages use a form of the if statement to create logical conditions. PHP supports a variety of forms of the if statement and we shall examine each of these. In addition we shall introduce the switch statement which is equivalent to a complex if structure.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag London
About this chapter
Cite this chapter
Stobart, S., Vassileiou, M. (2004). If and Switch Constructs. In: PHP and MySQL Manual. Springer Professional Computing. Springer, London. https://doi.org/10.1007/978-0-85729-404-3_11
Download citation
DOI: https://doi.org/10.1007/978-0-85729-404-3_11
Publisher Name: Springer, London
Print ISBN: 978-1-4471-1055-2
Online ISBN: 978-0-85729-404-3
eBook Packages: Springer Book Archive