I am trying to replace something in a string that is not a letter, number or dash "-".
How to change this line to include a dash?
$link = preg_replace('/[^a-z0-9]/', "", strtolower($_POST['link_name']));
Am I just pasting it there?
$link = preg_replace('/[^a-z0-9-]/', "", strtolower($_POST['link_name']));
source share