This example will show you how this function works. Just check if a link to a given site in the code of a target website really exists. To test this function you need to know a website address and the URL from one of link elements inside the target website.

Both URL's must be valid like: or

DigitalOceanSSD Cloud Server from $5/month by DigitalOcean, simple cloud hosting, built for developers. Receive $10 in credits »
ServerPilotServerPilot is the best way to run WordPress and PHP sites on your DigitalOcean servers. First month free »