Question: how to transfer iphone details?
Answer: Connect both your old and new iPhones to Wi-Fi.
Make sure you're signed into the same Apple ID on both devices (Settings > [your name]).
On both iPhones, open Settings > [your name] > iCloud.
Enable the Contacts toggle on both devices.