Views, passing argument from node taxonomy term

This code will be often used if you want to pass current node taxonomy term to view to list some other nodes, for example to have a list of similar nodes, nodes with same term. Choose taxonomy term:ID and write thise code down. We load current nodes data and get term ID from key of term.

$node=node_load(arg(1));
$argum=key($node->taxonomy); return $argum;