← All tasks
What you'll do
Write the PHP expression that removes every non-digit character from a phone number string.
Scenario
Users enter phone numbers with dashes and spaces, but you need only the digits stored.
Ready to try it?
Create a free account and subscribe to take "Write a preg_replace Expression to Strip Non-Digits". Earn 90 XP and track your internship progress.
Already have an account? Sign in