Images

Managing Multidimensional Arrays

Images To view the accompanying video for this lesson, please visit mhprofessional.com/nixonphp/.

Let me start by totally contradicting the title of this lesson and stating that there’s actually no such thing as multidimensional arrays in PHP. But before you start scratching your head and wondering whether I’ve drunk too many cups of tea, let me say that you can simulate multidimensional arrays in PHP by assigning new arrays as the values for elements of an existing array.

   But what exactly do I mean by multidimensional ...

Get PHP: 20 Lessons to Successful Web Development 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.