Do you know how to create or generate random number in php following function we will use to create random number : rand() : <?php echo (rand() . "<br>" ); echo (rand() . "<br>" ); echo (rand( 10 , 100 )); ?> basically syntax of rand function : <?php rand(); or rand(min,max); ?> min is minimum number of integer value defult is 0 max is maxinum number of digit mt_rand() Generate a random value via the Mersenne Twister Random Number Generator <?php echo mt_rand () . "\n" ; echo mt_rand () . "\n" ; echo mt_rand ( 10 , 15 ); ?> mt_srand() - the Mersenne Twister Random Number Generator mt_getrandmax() - Show largest possible random value random_int() - Generates cryptographically secure pseudo-random integers random_bytes() - Generates cryptographically secure pseudo-random bytes openssl_random_pseudo_bytes() - Generate a pseudo-random string of bytes rand() ...
PHP provide function to execute code, compile as well as generate output as per your requiment Following function is use for daily software development : 1-ucfirst() 2-ucwords() 3-substr() 4-is_numeric() 5-number_format() 6-rand() 7-round() 8-pi() 9-tan() 10-sin() 11- date() 12-strip_tags() 13-array_rotate() 14-array_diff() 15-print_r() 16-echo() 17-is_object() 18-is_array() 19-in_array() 20-array_chunk() 21-array_reverse() above function is used for any string as well as array operation if you have any query reply on below mail id : disuzajen@gmail.com