Do you know what is the use of rand() in php?
Submitted by: MuhammadIt is used to generate random numbers. If called without the arguments it returns a pseudo-random integer between 0 and getrandmax(). If you want a random number between 6 and 12 (inclusive), for example, use rand(6, 12). This function does not generate cryptographically safe values, and should not be used for cryptographic uses. If you want a cryptographically secure value, consider using openssl_random_pseudo_bytes() instead.
Submitted by: Muhammad
Submitted by: Muhammad
Read Online Junior Developer PHP Job Interview Questions And Answers
Top Junior Developer PHP Questions
☺ | Tell me how the result set of Mysql be handled in PHP? |
☺ | Tell me whether it is possible to share a single instance of a Memcache between multiple PHP projects? |
☺ | Do you know what does $GLOBALS means? |
☺ | Please explain is it possible to use COM component in PHP? |
☺ | Explain how can PHP and Javascript interact? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |