<?php $one_array_key = ['A', 'A', 'A', 'B', 'B', 'B']; $second_array_values = ['arn1', 'arn2', 'arn3', 'arn4', 'arn5', 'arn6']; foreach ($one_array_key as $index => $value) { $$value[] = $second_array_values[$index]; } var_export($A); echo "\n---\n"; var_export($B);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`