function getPlayerLeague( $player_profileLink )
{
$DOM = new DOMDocument;
$DOM -> load( $player_profileLink );
$Elements = $DOM -> getElementsByTagName("*");
$Matched = array();
for( $i = 0; $i < $Elements -> length; $i++ )
{
if( $Elements -> item( $i ) -> attributes -> getNamedItem('class') -> nodeValue == 'league-name' )
{
$Matched[] = $Elements -> item( $i ) -> nodeValue;
}
}
return $Matched;
}