Functions of cactus spines?
To injure animals that may be predators of the cactus, e.g. try
to eat it! If an animal goes to eat the cactus, it will spike them
and they will not eat it again. Also it absorbs and stores moisture
from the air for the cactus, so it can be utilized in hot
conditions.