<?php $str = "check out the 1. place"; $newStr = preg_replace("/[\s\.,]+/", "-", $str); echo $newStr;
You have javascript disabled. You will not be able to edit any code.