Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

40,003 questions

51,950 answers

573 users

How to merge 3 arrays into one array in PHP

1 Answer

0 votes
$arr1 = array("php", "java", "c++", "python");
$arr2 = array("c#", "c", "javascript");
$arr3 = array("vb.net", "go", "typescript", "node.js");

$merge_array = array_merge($arr1, $arr2, $arr3);
 
print_r($merge_array);
  

 
 
 
/*
run:
 
Array
(
    [0] => php
    [1] => java
    [2] => c++
    [3] => python
    [4] => c#
    [5] => c
    [6] => javascript
    [7] => vb.net
    [8] => go
    [9] => typescript
    [10] => node.js
)

*/

 



answered Jun 20, 2022 by avibootz

Related questions

2 answers 171 views
3 answers 312 views
312 views asked Feb 6, 2016 by avibootz
1 answer 193 views
1 answer 166 views
4 answers 362 views
362 views asked Apr 21, 2014 by avibootz
...