How to get my apps back in the same position if i get a new iphone?

I have an iphone 4 and i think i'm going to upgrade to an iphone 5s but i was wondering how can i get everything back in its place… Just one thing… I forgot my icloud password

You should try to get the password back or reset of course.

You backup the 4 & restore from that backup on the 5s when you get it using iTunes on your computer.