what is the principle involved in the detection of phosphorus?

the visible result of it is canary yellow

https://en.wikipedia.org/wiki/Phosphorus