I am using the following code to replace spaces with "_" for my URL rewriting
function.
$url = urlencode(preg_replace("/\s/e" , "_" , $url));
It get thrown the following error and can't figure out what it's trying to tell me,
Notice: Use of undefined constant _ - assumed '_' in : regexp code on line 1
Help!
(Note: I'm using PHP Version 5.2.4)