'PHP if to run script on a specific ip address [duplicate]

Is there a way to add an if so that some script will only run for users using a specific ip address.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source