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