Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Convert these array into one array

Array ( [0] => 10 ) Array ( [0] => 17 ) Array ( [0] => 17 ) Array ( [0] => 15 )

I want an output like this:

Array ( [0] => 10 ,[1] => 17,[2] => 17,[3] => 15)
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
178 views
Welcome To Ask or Share your Answers For Others

1 Answer

$a=array(10);$b=array(17);$c=array(17);$d=array(15);

print_r(array_merge($a,$b,$c,$d));

//Array([0]=>10 [1]=>17 [2]=>17 [3]=>15)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...