Hello to all, welcome to therichpost.com. In this post, I will tell you, Php Preg_Match Pattern for Week Days Name.
This code helped me lot to solved my major problem in work and I am hoping this will help others.
Here is the working code and tested code for Php Preg_Match Pattern for Week Days Name:
$str = '2018-09-09sundayShift1From=12:30pm'; preg_match('/monday?|tuesday?|wednesday?|thursday?|friday?|saturday?|sunday?/', $str, $matchs); echo $matchs[0]; //output is sunday
If you have any query related to this post, then please do ask questions or comment below.
Thank you.
Recent Comments