<?php $x = 'someValue_subKey'; echo strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', str_replace('_', '.', $x)));
You have javascript disabled. You will not be able to edit any code.