Skip to Main Content
PHP 8 Basics: For Programming and Web Development
book

PHP 8 Basics: For Programming and Web Development

by Gunnard Engebreth, Satej Kumar Sahu
December 2022
Beginner content levelBeginner
335 pages
4h 30m
English
Apress
Content preview from PHP 8 Basics: For Programming and Web Development
© Gunnard Engebreth, Satej Kumar Sahu 2023
G. Engebreth, S. K. SahuPHP 8 Basicshttps://doi.org/10.1007/978-1-4842-8082-9_6

6. Arrays

Gunnard Engebreth1   and Satej Kumar Sahu2
(1)
Madison, WI, USA
(2)
Bangalore, India
 

In the previous chapters, you learned how to deal with PHP variables. In this chapter, we will teach you how to create and manage PHP arrays.

Say you need to hold multiple values of a similar type in a single variable, without creating additional variables to store those values. How would you do this? By using PHP arrays.

This chapter consists of the following sections:
  • PHP Indexed and Associative Arrays

  • PHP Multidimensional Arrays

  • PHP Array Functions

PHP Indexed and Associative Arrays

Arrays are one of the most versatile and useful elements ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP 8 for Absolute Beginners: Basic Website and Web Application Development

PHP 8 for Absolute Beginners: Basic Website and Web Application Development

Jason Lengstorf, Thomas Blom Hansen, Steve Prettyman
Programming PHP, 4th Edition

Programming PHP, 4th Edition

Kevin Tatroe, Peter MacIntyre
JavaScript from Beginner to Professional

JavaScript from Beginner to Professional

Rob Percival, Laurence Svekis, Maaike van Putten, Codestars By Rob Percival

Publisher Resources

ISBN: 9781484280829Purchase LinkPublisher Website