Electronic distribution in PHP without exceeding the limit of electrons

0

I want to create a program that does the electronic distribution according to the Pauling diagram. Before I begin, I have a question:

How can I limit in PHP how many ele- ments each sub-level can have?

Example: Sub-level "s" the maximum of electrons is 2 (But may have less than that), sub-level "p" the maximum number of electrons is 6 (But may have less than that) >

How can I make this limit?

    
asked by anonymous 12.06.2017 / 14:18

0 answers