Notes for You:: PHP Math Functions Part 5 - PHP Tutorial 67
getrandmax() and rand() PHP Math Functions.
- To perform mathematical calculations easily PHP provides various mathematical functions and constants.
getrandmax():int
- Returns the largest random value that is possible to generate using rand() function
Ex:
echo getrandmax(); // 32767
rand():int
- Returns a random number between 0 and largest possible random value
Ex:
echo rand();
rand(minValue: int,maxValue: int):int
- Returns a random number between minValue and maxValue
Ex:
echo rand(1,10);
=========================================
Follow the link for next video:
PHP Tutorial 68 - PHP Math Constants | PHP M_E Constant | PHP M_PI Constant
• Math Constants M_PI and M_E PHP - PH...
Follow the link for previous video:
PHP Tutorial 66 - PHP Math Functions | round() Function | ceil() Function | floor() Function
• PHP Math Functions Part 4 - PHP Tutor...
=========================================
PHP Tutorials Playlist:-
• PHP Tutorials
=========================================
Watch My Other Useful Tutorials:-
MySQL Tutorials Playlist:-
• MySQL Tutorials
HTML Tutorials Playlist:-
• HTML Tutorials
CSS Tutorials Playlist:-
• CSS Tutorials
JavaScript Tutorials Playlist:-
• JavaScript Tutorials
=========================================
Subscribe to our YouTube channel:
/ chidrestechtutorials
Visit our Website:
https://www.chidrestechtutorials.com
=========================================
Hash Tags:
#PHP #PHPTutorial #ChidresTechTutorials