<?php $arr = ['one', 'two', 'three', 'four',]; $temp = $arr; foreach($arr as $v){ $temp[$v] = $arr; } print_r($arr); print_r($temp);
You have javascript disabled. You will not be able to edit any code.