Answer & Solution
die()
function in PHP is used to terminate script execution immediately at the point where it is called. It can be used to halt script execution when a certain condition is met or to display an error message before terminating the script.