I'm trying to achieve the following with this:
$pricelist = pricelist();
$hotels[$index ]['id']
I want to copy the bottom line into the pricelist()
function like this:
$pricelist = pricelist($hotels[$index ]['id']);
I'm selecting the bottom line text only in visual mode, and yanking it, then when I go to the first parenthesis it pastes the line below, but with the last square bracket moved like so:
$pricelist = pricelist();
]$hotels[$index ]['id
Can anyone explain what I am doing wrong?
Apparently I can't paste anything into the parentheses, it puts it on the line below.