fork(87) download
  1. <?php
  2. $className = 'getADog';
  3. $result = strtolower(preg_replace('/([a-zA-Z])(?=[A-Z])/', '$1-', $className));
  4. echo $result;
  5. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
get-a-dog