Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
80% of success is a normally formulated question))). Moreover, often when you formulate , you find the answer yourself)))
I will assume that from one array you need to get another, where the first subarray contains the keys, and the second contains the values. For example :
$testArray = ['1'=>'ОДЫН', '2'=>'ДЫВА' , '3'=>'ТРЫ', '4'=>'ЧЯТЫРЯ' ];
$result =[];
foreach($testArray as $k=>$v){
$result[0][] = $k;
$result[1][] = $v;
}
var_dump($result);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question