Q&A

Q1: Can I create arrays for values entered into elements other than select and check box fields?
A1: Yes, in fact any element name ending with empty square brackets in a form resolves to an array element when the form is submitted. You can use this fact to group values submitted from multiple fields of any type into an array.
Q2: The header() function seems powerful. Will we look at HTTP headers in more detail?
A2: We cover HTTP (Hypertext Transfer Protocol) in more detail in Hour 14, “Beyond the Box.”

Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.