Sometimes you need to track a remote branch for changes, typically called *upstream*. Let's say you're working on a team where you fork a project and have your own repo. Prior to creating any pull request you'd definitely want to pull in any changes from the originating repository.
PHP's array_reduce is a simple way to partition a set of data or return a single value. It is super powerful and worth spending time learning.