6 ms·
People use method chaining all the time and don't have any issue with it? It's equivalent to something like: $result = $arr ->column('values')
by mcaruso 1y ago
People use method chaining all the time and don't have any issue with it? It's equivalent to something like:
$result = $arr
->column('values')
->merge()
->reduce(fn($carry, $item) => $carry + $item, 0)
->repeat('x');
I think this just comes down to familiarity.