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
On the advice of Vladislav Kopylov , I did through FOREACH:
foreach ($arr['data'] as $mm) {
$copy_arr[$mm['tank_id']] = $mm['all']; // "all" = "static"
}
$arr['data'] = $arr['data'][0]; only index 1 in the third line is confusing.
In general, it looks like a series of unsuccessful programming decisions. Most likely, something somewhere needs to be simplified.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question