src/Alg/HtmlParser.php
public function getMetaTags( $lowerCaseKeys = FALSE )
	{
		$list	= array();
		$tags	= $this->document->getElementsByTagName( "meta" );
		foreach( $tags as $tag )
		{
			if( !$tag->hasAttribute( 'content' ) )
				continue;
			$content	= $tag->getAttribute( 'content' );
			$key		= $tag->hasAttribute( 'name' ) ? "name" : "http-equiv";
			$name		= $tag->getAttribute( $key );
			if( $lowerCaseKeys )
				$name	= strtolower( $name );
			$list[$name]	= trim( $content );
		}
		return $list;
	}
public function getMetaTags( $lowerCaseKeys = FALSE )
	{
		$list	= array();
		$tags	= $this->document->getElementsByTagName( "meta" );
		foreach( $tags as $tag )
		{
			if( !$tag->hasAttribute( 'content' ) )
				continue;
			$content	= $tag->getAttribute( 'content' );
			$key		= $tag->hasAttribute( 'name' ) ? "name" : "http-equiv";
			$name		= $tag->getAttribute( $key );
			if( $lowerCaseKeys )
				$name	= strtolower( $name );
			$list[$name]	= trim( $content );
		}
		return $list;
	}
public function getMetaTags ( $ lowerCaseKeys = FALSE ) { $ list = array ( ) ; $ tags = $ this -> document -> getElementsByTagName ( "meta" ) ; foreach ( $ tags as $ tag ) { if ( ! $ tag -> hasAttribute ( 'content' ) ) continue ; $ content = $ tag -> getAttribute ( 'content' ) ; $ key = $ tag -> hasAttribute ( 'name' ) ? "name" : "http-equiv" ; $ name = $ tag -> getAttribute ( $ key ) ; if ( $ lowerCaseKeys ) $ name = strtolower ( $ name ) ; $ list [ $ name ] = trim ( $ content ) ; } return $ list ; }
Returns Array of set Meta Tags.
@access		public
@return		array
Returns Array of set Meta Tags .