<?php $x = [ 'PascalCase' => 'camelCase', 'PascalCase2' => 'camelCase2', ]; // Lets convert the PascalCase keys to camelCase $arr = array_combine( array_map(function($k) { return lcfirst($k); }, array_keys($x)), array_values($x) ); var_dump($arr);
You have javascript disabled. You will not be able to edit any code.