Lets say i have this array:
$first = ['hi', 'by', 'nice']
I am going to assign another array to this array items.In fact doing a foreach
loop and due to situation assign a new array to desired array item.
Now i want turn it to this:
$second = ['hi', 'by' => ['really' => 'yes'], 'nice']
How can i do it programmatically?