src/mako/utility/HTML.php
protected function attributes(array $attributes): string
	{
		$attr = '';

		foreach($attributes as $attribute => $value)
		{
			if(is_int($attribute))
			{
				$attribute = $value;
			}

			$attr .= ' ' . $attribute . '="' . $value . '"';
		}

		return $attr;
	}
protected function attributes(array $attributes): string
	{
		$attr = '';

		foreach($attributes as $attribute => $value)
		{
			if(is_int($attribute))
			{
				$attribute = $value;
			}

			$attr .= ' ' . $attribute . '="' . $value . '"';
		}

		return $attr;
	}
protected function attributes ( array $ attributes ) : string { $ attr = '' ; foreach ( $ attributes as $ attribute => $ value ) { if ( is_int ( $ attribute ) ) { $ attribute = $ value ; } $ attr .= ' ' . $ attribute . '="' . $ value . '"' ; } return $ attr ; }
Takes an array of attributes and turns it into a string.

@param  array  $attributes Array of tags
@return string
Takes an array of attributes and turns it into a string .