Check if PHP GD Library is Installed on Your Web Server Use this php code to check if a variable is between the range of two numbers…