I have an array of data like so
[
'one', 'two', 'three'
]
I need to convert it like so
[
'one' => 'one',
'two' => 'two'
]
I found out about array_flip which gives me
[
'one' => 0,
'two' => 0,
'three' => 0
]
What can I do from there? Any clean PHP way to do this?