private function arraySnakeCase($array)
    {
        $newArray = [];

        foreach ($array as $key => $value) {
            $newArray[snake_case($key)] = $value;
        }

        return $newArray;
    }
private function arraySnakeCase($array)
    {
        $newArray = [];

        foreach ($array as $key => $value) {
            $newArray[snake_case($key)] = $value;
        }

        return $newArray;
    }
private function arraySnakeCase ( $ array ) { $ newArray = [ ] ; foreach ( $ array as $ key => $ value ) { $ newArray [ snake_case ( $ key ) ] = $ value ; } return $ newArray ; }
Converts the keys of an array into snake case.

@param array
@return array
Converts the keys of an array into snake case .