for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cocur\Chain\Link;
/**
* Class ChangeKeyCase.
*
* @author Christoph Rosse
*/
trait ChangeKeyCase
{
* Changes the case of all keys in an array.
* Changes all keys from lowercased or uppercased. Numbered indices are left as is.
* @param int $case either `CASE_UPPER` or `CASE_LOWER` (default)
* @return self
public function changeKeyCase(int $case = CASE_LOWER): self
$this->array = array_change_key_case($this->array, $case);
return $this;
}