<?php $string = 'this is Tom & Jerry'; echo preg_replace('/[^a-z\d]+/i', '-', $string);
You have javascript disabled. You will not be able to edit any code.