how do let user input numbers

Hi I’m a student currently trying to learn PHP. I have an assignment to “design the logic for a program that allows a user to enter 10 numbers, then displays them in reverse order as entered. Must use arrays and loops.” If at all possible I would like the answer to just not be provided for me by this community. I genuinely want to learn PHP, and I’m just looking for some guidance on how to get started. So far I know that I should be using a For Loop and rsort, but I’m having trouble on how to let the user input numbers.

Thanks in advance for the help!

You use a form for the user input and use array_reverse to get it in reverse order. You dont need a FOR loop or RSORT.

Sponsor our Newsletter | Privacy Policy | Terms of Service