Write a php code which could be used to generate random
numbers between 1 - 100 and display them on the screen.

Answer Posted / laxmikant

echo rand(1,100);

Is This Answer Correct ?    29 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the initials of php stand for?

537


What is whitespace in html?

530


Where are cookies stored php?

507


What is an abstract class in php?

483


What is the difference between == and === in php?

554






Explain about getters and setters in php?

536


How can we enable error reporting in php?

477


What is use of isset function in php?

595


What is "echo" in php?

535


Where do we use get and post?

533


What is the difference between require_once and require in php?

563


How does php strcmp work?

508


How to track user logged out or not? When user is idle?

516


How to change the principal password?

629


What are the rules to declare a php variables?

523