As the title summarises, valid_sg_phone_number() only validates Singapore fixed line numbers which start with the digit 6. Mobile numbers do not validate as they start either with 8 or 9. Numbers with the country code included e.g. +65 61234567 also do not validate.
For reference, see the Wikipedia page on Singapore phone numbers.
Attached is a patch to address these two issues.
| Comment | File | Size | Author |
|---|---|---|---|
| Patch to fix phone.sg.inc | 709 bytes | descender |
Comments
Comment #1
thierry_gd commentedTaken into account in 6.2.18 release