These are added before the country codes for dialing FROM :
'00', '011', '011', '00', '0011', '00', '00', '011', '00', '00', '011', '8', '00', '00', '00', '011', '00', '00', '8', '000'
Example for BD the code is 88. Most FROM countries will dial 00+code while FROM USA it is 011+code. You put it in an array, the code shrinks rapidly.

No... I didn't miss your point; that was an example, for you to adapt. With that many validations to have to rotate threw; yeah... you could put countries in an array and the phone code, in another array and then compare to the values of your select fields. Then use a for or while loop to cycle through the validation and use the current "if" condition, to compare corresponding array keys, from both of your arrays. So you would have to structure your arrays; in a way... that the keys would match up, to give you the results, that you desire.