Question: how to transfer photos from iphone to iphone by icloud?
Answer: On your iPhone, go to Settings > [Your Name] > iCloud > Photos. Ensure that the "iCloud Photos" entry is toggled ON. Select either "Optimize iPhone Storage" or "Download and Keep Originals". Your iPhone will start uploading photos to iCloud. Once done, enable iCloud Photos on the other iPhone.