$node_taxonomy = taxonomy_link('taxonomy terms', $node);foreach ($node_taxonomy as $value) { $id = substr($value['href'],14);}