On a page I have a random number by using: echo rand(5, 10); I have a book on php that talks about random numbers but does not tell me how I can show the number generated on 2 more occasions elswere on the page. So whatever number is chosen in the 5, 10 statement I want to show the result again further down the page(the same number).
Thank you for that. I thought it may include the echo statement. I also thought I would need to give it some sort of tag like $num; Good thing for me is I am starting to see what I need to do before asking now rather than posting in blind hope.