i have a field in my database with numbers like this.......
,27,,277,,4277,,677,,678,,6688,,8754,,123478,
each number was updated (added) like this .. ,27,
all numbers updated are unique,
when i try to match ,27,
i get ,27, ,277, ,4277, not just ,27,
my code is like this...
$id = 27
$string = ",27,,277,,4277,,677,,678,,6688,,8754,,123478,"
$getid = preg_match("/$id/", $string);
please help :)