Summer sale! Save 50% on access to our entire library of courses.Join here →

Flattening A PHP Multidimensional Array

1 episode 12 mins


A couple of methods you can use to flatten a multidimensional array with PHP. The first method looks at a more verbose method of looping through array items and self calling a function/method, and the second looks at using standard PHP classes to make it a bit cleaner.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!


Your progress
  • Total: 12m
  • Played: 0m
  • Remaining: 12m