Lessons: 26Length: 1.7 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

3.3 preg_match and preg_match_all

Let’s imagine that you’re working on a project where you give the user the ability to register for your site, and when they create a password you want to make sure, for security reasons, that they must put a number into that password field. How could you validate it to make sure that there was a number present? Let’s do that in this lesson.