The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › [Solved] Adding a wild card in PHP › Re: [Solved] Adding a wild card in PHP
Try…
if ((substr($phone, 0, 3) == "805") ...
or look at substr_compare().