Python
Database
Operating System
Programming
Linux Command
Toolkit
Other
Keyboard Shortcuts
Open sidebar
Open user menu
Guess
Search
Dart
HTML Canvas
Redis
Bash
JavaScript
PHP
PHP Arrays
Concatenate arrays
$a = [1, 2]; $b = [3, 4]; // PHP 7.4 later # => [1, 2, 3, 4] $result = [...$a, ...$b];
Comments
Add your comment
Post
Related
Also see
Miscellaneous
PHP Classes
PHP Functions
PHP Loops
PHP Conditionals
PHP Operators
PHP Arrays
PHP Strings
PHP Types
Getting Started