Is there a way to keep unlimited amounts of pictures from an iphone forever in an app or something?

Is there a way to keep unlimited amounts of pictures from an iphone forever in an app or something?

No

Can't get unlimited unless you're willing to pay monthly for it.

You can upload them to Mega, you get 50gb of space for free

Not an unlimited number.

Each image consists of a certain number of digital bits that have to be stored in memory.
No device has an unlimited memory capacity.

Your phone only has a limited amount of memory and it will not last forever. Also, how often do you look at those photos?

Viaf Galaxy S8 or OnePlus 5T?

Google is making a big play for your photos. It's releasing a revamped Google Photos today that offers unlimited storage of images and videos entirely for free. Apple has a similar feature called the iCloud Photo Library baked into the Photos app, but it does not include free unlimited storage. For more new updates of mobiles, gadgets, electronic appliances, visit to our site.
https://mytrendygadget.blogspot.in

There's Google Photos which gives you unlimited* storage for pics.

*as long as you use their formatting (up to 16MP shots (higher MP shots are reduced to that size))