PHP 8 · Strings and arrays Merge arrays Combine arrays with the spread operator. $all = [...$first, ...$second]; Official PHP 8 documentation More strings and arrays commands Search in stringsInsert variables in stringsTransform and filter arraysExtract a columnSort with a comparisonCheck keys and values All strings and arrays commands · PHP 8 cheatsheet ← Sort with a comparisonCheck keys and values →