profile picture

1 pages tagged with "performance"

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.