Question: how do i transfer music from iphone 7 to iphone 11?
Answer: Connect your source iPhone to your computer and launch iTunes.
In iTunes, go to "File" > "Devices" > "Transfer Purchases from [your iPhone name]" to transfer music from iPhone to iTunes. ... 
Connect the target iPhone to the computer and then open iTunes.