How can I do this? My variable = "/word.html" I want to change that to = "word" Any idea how to remove the / and .html?
$old_variable = "/word.html": $new_variable = preg_replace('/\/(.*)\.html/', '\\1', $old_variable); PHP: