I\'m using woocommerce on wordpress to create a simple shop site and I\'ve added a couple attributes to a product. These are namely, size and color. Un
size
color
In addition to @user5029040 answer, which outputs html, if you want to get an array you can use the following function.
$product->get_variation_attributes();