I have this expression,
$thing = "linkin park @#%^&* 999";
$thing = preg_replace('#\W#', '', $thing);
echo $thing;
and it results to linkinpark999. I just need an expression which will result to linkin_park_999. It will be great if you explain me the code too.
You can try: