U
U
Uzair Izha2015-10-29 16:32:07
PHP
Uzair Izha, 2015-10-29 16:32:07

How to connect arrays?

Array ( [0] => 10 [1] => 11 [2] => 12 ) Array ( [0] => 9 )

It is derived from this
$st = $rfx['nomer'];  $vc = explode( ', ', $st);    print_r($vc);

$st - all arrays are stored there. $vc arranges the elements of them one by one simply.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Beloborodov, 2015-10-29
@kowap

$res=array_merge(array(),array());
________
well, if you have several arrays in one array that need to be combined into one, then probably like this:

$arr=[
     [1,2,3,4,5,6,7,8,9,0],
     [11,22,33,44,55,66,77]
];
$res=array_merge($arr[0],$arr[0]);

S
Stalker_RED, 2015-10-29
@Stalker_RED

What does "$st - all arrays are stored there. $vc arranges their elements one by one simply. "?
Please provide a code example if array_merge() does not work for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question