I have a PHP code to check a string inside collection of strings, my code something like this:
$string = '01122028K,02122028K,03122028M-1';
$search = '03122029M'
echo preg_match('/\b' . $search . '\b/', $string);
It returns TRUE...
How can I do with my regex to return it FALSE, I want it only return TRUE when the string in variable $search is actually match in variable $string, so $search = "03122029M" would return FALSE $search = "03122029M-1" would return TRUE
Thank you