<?php$className = 'getADog';$result = strtolower(preg_replace('/([a-zA-Z])(?=[A-Z])/', '$1-', $className));echo $result;?>
Standard input is empty
get-a-dog
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!