src/RattfieldNz/UrlValidation/UrlValidation.php
public static function getUrlStatusCode($url)
    {
        //Instantiate the EpiCurl class to be used
        //with checking URL HTTP status code.
        $epi_curl_checker = EpiCurl::getInstance();

        // Add the given URL to the url checker.
        $url_check = $epi_curl_checker->addURL($url);

        //Return the HTTP status code.
        return $url_check->code;
    }
public static function getUrlStatusCode($url)
    {
        //Instantiate the EpiCurl class to be used
        //with checking URL HTTP status code.
        $epi_curl_checker = EpiCurl::getInstance();

        // Add the given URL to the url checker.
        $url_check = $epi_curl_checker->addURL($url);

        //Return the HTTP status code.
        return $url_check->code;
    }
public static function getUrlStatusCode ( $ url ) { //Instantiate the EpiCurl class to be used
 //with checking URL HTTP status code.
 $ epi_curl_checker = EpiCurl :: getInstance ( ) ; // Add the given URL to the url checker.
 $ url_check = $ epi_curl_checker -> addURL ( $ url ) ; //Return the HTTP status code.
 return $ url_check -> code ; }
This function obtains an HTTP status
code from a given URL.
@param $url
@uses EpiCurl::getInstance
@return int
This function obtains an HTTP status code from a given URL .