<?php $array = range(1, 10); $prefix = 'foo'; var_export( array_combine( substr_replace($array, 'key', 0, 0), substr_replace($array, 'value', 0, 0) ) );
You have javascript disabled. You will not be able to edit any code.