public static function serialize(array $tokens)
	{
		$attrValue = '';
		foreach ($tokens as $token)
		{
			if ($token[0] === 'literal')
			{
				$attrValue .= preg_replace('([{}])', '$0$0', $token[1]);
			}
			elseif ($token[0] === 'expression')
			{
				$attrValue .= '{' . $token[1] . '}';
			}
			else
			{
				throw new RuntimeException('Unknown token type');
			}
		}

		return $attrValue;
	}
public static function serialize(array $tokens)
	{
		$attrValue = '';
		foreach ($tokens as $token)
		{
			if ($token[0] === 'literal')
			{
				$attrValue .= preg_replace('([{}])', '$0$0', $token[1]);
			}
			elseif ($token[0] === 'expression')
			{
				$attrValue .= '{' . $token[1] . '}';
			}
			else
			{
				throw new RuntimeException('Unknown token type');
			}
		}

		return $attrValue;
	}
public static function serialize ( array $ tokens ) { $ attrValue = '' ; foreach ( $ tokens as $ token ) { if ( $ token [ 0 ] === 'literal' ) { $ attrValue .= preg_replace ( '([{}])' , '$0$0' , $ token [ 1 ] ) ; } elseif ( $ token [ 0 ] === 'expression' ) { $ attrValue .= '{' . $ token [ 1 ] . '}' ; } else { throw new RuntimeException ( 'Unknown token type' ) ; } } return $ attrValue ; }
Serialize an array of AVT tokens back into an attribute value

@param  array  $tokens
@return string
Serialize an array of AVT tokens back into an attribute value