<?php $text = 'пинг понг'; var_dump(preg_replace('/\W/u', '-', $text), preg_replace('/\PL/u', '-', $text));
You have javascript disabled. You will not be able to edit any code.