Question: how to transfer photos from icloud onto iphone?
Answer: On your iPhone, go to Settings. Tap on your name -> iCloud.
Select Photos and then iCloud photos (or iCloud Photo Library for older iOS versions). ... 
Now, all you have to do is wait until the iCloud photos are downloaded to the iPhone.