You can use the array_combine
function, like so:
$numbers = array('first', 'second', 'third');
$result = array_combine($numbers, $numbers);
You can use the array_combine
function, like so:
$numbers = array('first', 'second', 'third');
$result = array_combine($numbers, $numbers);