A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
763 B

2 years ago
<?php
/*
* Copyright © 2023 ExacTI Technology Solutions. All rights reserved.
* GPLv3 General License.
* https://exacti.com.br
*/
namespace Phacil\Framework\ArrayClass;
if (version_compare(phpversion(), "7.1.0", "<")) {
2 years ago
class supCaseComp extends \Phacil\Framework\ArrayClass\Aux\LegacyAux {
2 years ago
}
} else {
class supCaseComp extends \Phacil\Framework\ArrayClass\Aux\ModernAux
2 years ago
{
2 years ago
}
}
2 years ago
class CaseInsensitiveArray extends supCaseComp implements \ArrayAccess
{
protected $_container = array();
2 years ago
/**
* @param array $initial_array
* @return void
2 years ago
*/
public function __construct(array $initial_array = array())
2 years ago
{
//$this->_container = array_map("strtolower", $initial_array);
$this->_container = array_change_key_case($initial_array);
2 years ago
}
2 years ago
}