src/Alg/HtmlParser.php
public function getKeyWords( $throwException = TRUE )
	{
		$list	= array();
		$tags	= $this->getMetaTags( TRUE );
		if( isset( $tags['keywords'] ) )
		{
			$words	= explode( ",", $tags['keywords'] );
			foreach( $words as $word )
				$list[]	= trim( $word );
			return $list;
		}
		if( $throwException )
			throw new RuntimeException( 'No Favorite Icon Link Tag found.' );
		return $list;
	}
public function getKeyWords( $throwException = TRUE )
	{
		$list	= array();
		$tags	= $this->getMetaTags( TRUE );
		if( isset( $tags['keywords'] ) )
		{
			$words	= explode( ",", $tags['keywords'] );
			foreach( $words as $word )
				$list[]	= trim( $word );
			return $list;
		}
		if( $throwException )
			throw new RuntimeException( 'No Favorite Icon Link Tag found.' );
		return $list;
	}
public function getKeyWords ( $ throwException = TRUE ) { $ list = array ( ) ; $ tags = $ this -> getMetaTags ( TRUE ) ; if ( isset ( $ tags [ 'keywords' ] ) ) { $ words = explode ( "," , $ tags [ 'keywords' ] ) ; foreach ( $ words as $ word ) $ list [ ] = trim ( $ word ) ; return $ list ; } if ( $ throwException ) throw new RuntimeException ( 'No Favorite Icon Link Tag found.' ) ; return $ list ; }
Returns List of Key Words or throws Exception.
@access		public
@param		bool			$throwException		Flag: throw Exception if not found, otherwise return empty String
@return		array
@throws		RuntimeException
Returns List of Key Words or throws Exception .