ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# System.PHPArray 类 ## 注释 ~~~ 表示键和值的集合。 ~~~ ## 语法 ~~~ public class PHPArray : Dictionary<object, object> ~~~ ## 构造函数 | | 名称 | 说明 | | --- | --- | --- | | | [PHPArray](https://www.kancloud.cn/gxser1986/cqrobot/3015649) | 初始化 PHPArray 类的新实例,该实例为空且具有默认的初始容量,并使用键类型的默认相等比较器。 | | | [PHPArray](https://www.kancloud.cn/gxser1986/cqrobot/30156450) | 初始化 PHPArray 类的新实例,该实例为空且具有默认的初始容量,并设置忽略大小写。 | | | [PHPArray](https://www.kancloud.cn/gxser1986/cqrobot/30156451) | 初始化 PHPArray 类的新实例,该实例为空且具有指定的初始容量,并为键类型使用默认的相等比较器。 | | | [PHPArray](https://www.kancloud.cn/gxser1986/cqrobot/30156452) | 初始化 PHPArray 类的新实例,该实例为空且具有指定的初始容量,并设置忽略大小写。 | | | [PHPArray](https://www.kancloud.cn/gxser1986/cqrobot/30156453) | 初始化 | ## 属性 | | 名称 | 说明 | | --- | --- | --- | | | [IgnoreCase](https://www.kancloud.cn/gxser1986/cqrobot/30156455) | 忽略大小写 | | | [this\[object key\]](https://www.kancloud.cn/gxser1986/cqrobot/30156456) | 获取或设置与指定的键相关联的值。 | | | [this\[string key\]](https://www.kancloud.cn/gxser1986/cqrobot/30156457) | 获取或设置与指定的键相关联的值。 | | | [this\[int key\]](https://www.kancloud.cn/gxser1986/cqrobot/30156458) | 获取或设置与指定的键相关联的值。 | ## 方法 | | 名称 | 说明 | | --- | --- | --- | | | [Add](https://www.kancloud.cn/gxser1986/cqrobot/30156460) | 将指定的键和值添加到字典中。 | | | [Add](https://www.kancloud.cn/gxser1986/cqrobot/30156461) | 将指定的键和值添加到字典中。 | | | [Add](https://www.kancloud.cn/gxser1986/cqrobot/30156462) | 将指定的键和值添加到字典中。 | | | [Add](https://www.kancloud.cn/gxser1986/cqrobot/30156463) | 将指定的键和值添加到字典中。 | | | [Updata](https://www.kancloud.cn/gxser1986/cqrobot/30156464) | 将指定的键和值更新到字典中。 | | | [Updata](https://www.kancloud.cn/gxser1986/cqrobot/30156465) | 将指定的键和值更新到字典中。 | | | [ContainsKey](https://www.kancloud.cn/gxser1986/cqrobot/30156466) | 确定 PHPArray 是否包含指定的键。 | | | [ContainsKey](https://www.kancloud.cn/gxser1986/cqrobot/30156467) | 确定 PHPArray 是否包含指定的键。 | | | [ContainsKey](https://www.kancloud.cn/gxser1986/cqrobot/30156468) | 确定 PHPArray 是否包含指定的键。 | | | [Remove](https://www.kancloud.cn/gxser1986/cqrobot/30156469) | 从 PHPArray 中移除所指定的键的值。 | | | [Remove](https://www.kancloud.cn/gxser1986/cqrobot/30156470) | 从 PHPArray 中移除所指定的键的值。 | | | [Remove](https://www.kancloud.cn/gxser1986/cqrobot/30156471) | 从 PHPArray 中移除所指定的键的值。 | | | [Print](https://www.kancloud.cn/gxser1986/cqrobot/30156472) | 打印关于变量的易于理解的信息。 | | | [Join](https://www.kancloud.cn/gxser1986/cqrobot/30156473) | Join array elements with a string |