The only difference between safety matches and strike-anywhere matches is that the match head of the latter contains red phosphorus as well as an oxidising agent and sulphur. This allows it to ignite on any surface when friction creates heat.