I am trying to match a variable in another variable and can't get the code to work. I have tried escaping the first variable and still no luck.
Say if
$c = 10;
and
$$area_of_specialty = "10. Nursing";
if(preg_match ("/\$c/", $area_of_specialty)) {
echo "match";
}
If someone can point out what I am doing wrong I would greatly appreciate it.
Kody