public function __construct($data)
Construct a new array object.
| array | $data | The input array. |
| this | //Implicit.// |
public function getKeys()
| wild |
public function offsetExists($key)
| $key |
| wild |
public function offsetGet($key)
| $key |
| wild |
public function offsetSet($key, $value)
| $key | ||
| $value |
| wild |
public function offsetUnset($key)
| $key |
| wild |
private function transformKey($key)
Transform an array key.
This method transforms an array key to be case-invariant. We could just call [[http://php.net/manual/en/function.strtolower.php | strtolower]] directly, but this method allows us to contain the key transformation logic within a single method, should it ever change.
Theoretically, we should be able to use any of the following functions for the purpose of key transformations:
- [[http://php.net/manual/en/function.strtolower.php | strtolower]]
- [[http://php.net/manual/en/function.strtoupper.php | strtoupper]]
- Some creative use of other string transformation functions.
| string | $key | The input key. |
| string | The transformed key. |