From reference or science books, we can actually know that the elementary charge of phosphorus is -3. Since it is negative, this means that it has an excess of electrons, which further means that it takes up 3 electrons to become an ion. Therefore the equation can be written as:
P + 3e ---> P3-