Question: how to recover photos from erased iphone?
Answer: Go to Settings -> General -> Reset -> Erase All Content and Settings. Restart your device. Go to Apps and Data, select “Restore from iCloud backup” and log in to your iCloud account. Select the backup that contains your deleted iPhone photos.