profile picture

2 pages tagged with "array"

Never use array_merge in a loop

November 10, 2020

blog-cover

Using array_merge inside a loop is a performance killer. The spread operator will help you to improve this by flatting the array.

Typed arrays in PHP

October 13, 2020

blog-cover

Argument unpacking, function variable argument list, and variadics function.