Do they all look like camelCase? You can turn it into an array and then turn it into a string.
<?php function splitCamelCase($str) { return preg_split('/(?<=\\w)(?=[AZ])/', $str); } print_r(splitCamelCase("ZipPostalCode")); ?>
Edit: ignore this - better answer the answer.
source share