Menu
[CODE]
$info[0] = “/apple/farm/”;
$the_path = “/apple/”;
$cat_rep = preg_replace(“/^$the_path/”, “”, $info[0]);
echo $cat_rep;
Im trting to get $cat_rep to contain “farm/”, instead I get this error:
Warning: Unknown modifier ‘a’ in
Please help. I see how its doing somethign with / and trying to end the regex with apple as a modifier. What should I do?