When using PHP, how can I remove the characters between two forward slashes in a $var?
I tried:
$test = "gdgfdgdf/asg8&7_09()9/87iuyiuuyty";
$test = str_replace('/\s+/', '_', $test);
Note that /asg8&7_09()9/
is dynamic data.
Unfortunately this doesn't give the intended results. How can I accomplish this using PHP?