<?php $string = 'SiteContentManagement'; echo strtolower(preg_replace('~(?!^)(?=[A-Z])~', '-', $string)); echo "\n"; echo strtolower(preg_replace('~(?!^)[A-Z]~', '-$0', $string)); echo "\n"; echo strtolower(preg_replace('~[^A-Z]+\K(?=[A-Z])~', '-', $string));
You have javascript disabled. You will not be able to edit any code.