Is there a way to simulate the LIKE operator of SQL in PHP with the same syntax? (% and _ wildcards and a generic $escape escape chara
%
_
$escape
You can use regexp, for example: preg_match.
preg_match