Menu
Hello,
I am trying to remove all non alphanumeric characters, but not spaces.
This is the test script I am running, but if the keyword is “Test It”, it echos “TestIt”.
[code=php]$keyword = $_GET[‘keyword’];
$var = $keyword;
$stripped = ereg_replace(“[^+A-Za-z0-9]”, “”, $var);
echo $stripped;
Any help is appreciated. ?!