public function expand ($url)
    {
        $expanded = null;
        
        $this->expandAll([$url], function ($error, $long) use (&$expanded) {
            $expanded = $long;
        });
        
        return $expanded;
    }
public function expand ($url)
    {
        $expanded = null;
        
        $this->expandAll([$url], function ($error, $long) use (&$expanded) {
            $expanded = $long;
        });
        
        return $expanded;
    }
public function expand ( $ url ) { $ expanded = null ; $ this -> expandAll ( [ $ url ] , function ( $ error , $ long ) use ( & $ expanded ) { $ expanded = $ long ; } ) ; return $ expanded ; }
Expands the given URL, and will return the long version of the provided shortened URL. This is done by issuing
a HEAD request on the given URL.

@param string $url

@return string|null
Expands the given URL and will return the long version of the provided shortened URL . This is done by issuing a HEAD request on the given URL .