I have in database values like this
123456789
826438758
?emailaddress1@test.com
?emailaddress2@test2.com
I am getting the value dynamically but I need to be able to find out if there is a ? in the value. If there is a question mark in the value I want to redirect them to some other place
I think we can do this with regex but not sure how
http://php.net/manual/en/function.strpos.php
The
===is important as it will returnfalsewhen there is no question mark, andfalse == 0is true.