I was surprised to discover that the MySQL query
SELECT * WHERE name LIKE "%AFA_";
returns rows where name
is SAFARI.
To get it to match on the underscore, you have to do:
SELECT * WHERE name LIKE "%AFA\_";
Is there a PHP function that can do this transition or do I have to use str_replace
?