I've been working on a web development project and I'm currently facing an issue with validating a number using regular expressions in PHP. I need to check whether a given number consists of exactly 5 digits.
I tried searching online for a solution but couldn't find anything specific to my needs. I know regular expressions can be a powerful tool for pattern matching, but I'm not very familiar with them.
Can someone please help me with the PHP regular expression code to achieve this? I want to make sure that the number includes only 5 digits and nothing else.
Any assistance would be greatly appreciated. Thank you!