Create a function maskify
to mask digits of a credit card number with #
.
Requirements:
Examples:
1234-5678-9012
converts to 1###-####-9012
123456789012
converts to 1#######9012
Sign up to Exercism to learn and master PHP with 11 concepts, 110 exercises, and real human mentoring, all for free.