Solving an Array Reduce Interview Question - in PHP



Published
Wes Bos solved an array reduce interview question in JavaScript (https://www.youtube.com/watch?v=izVZ22XaZUc) and it made me super curious how I’d solve it in PHP. Here’s my take!

See the code here:

https://phpsandbox.io/n/array-reduce-interview-question-stqiv

00:00 Introduction
00:43 Solving with Laravel's Collections
11:17 Solving with native PHP
Category
Job
Be the first to comment