src/Gelembjuk/Locale/Languages.php
public function getLanguagesFromList($list) {
		$alllanguages = $this->getAllLanguages();
		
		$languages = array();
		
		foreach ($alllanguages as $code=>$lang) {
			if (in_array($code,$list)) {
				$languages[$code] = $lang;
			}
		}
		
		return $languages;
	}
public function getLanguagesFromList($list) {
		$alllanguages = $this->getAllLanguages();
		
		$languages = array();
		
		foreach ($alllanguages as $code=>$lang) {
			if (in_array($code,$list)) {
				$languages[$code] = $lang;
			}
		}
		
		return $languages;
	}
public function getLanguagesFromList ( $ list ) { $ alllanguages = $ this -> getAllLanguages ( ) ; $ languages = array ( ) ; foreach ( $ alllanguages as $ code => $ lang ) { if ( in_array ( $ code , $ list ) ) { $ languages [ $ code ] = $ lang ; } } return $ languages ; }
Return languages listed in the argument array. Is used for case when it is needed to get list of specified languages

@return array
Return languages listed in the argument array . Is used for case when it is needed to get list of specified languages