- 测试 isset 对字符串布尔索引的处理 - 测试对象作为字符串索引的异常情况 - 验证 PHP 字符串索引访问的行为 - 检查不同类型索引的安全性问题 - 确保字符串索引边界检查功能正常pull/1/head
parent
cd2f4d7ac5
commit
2824d8d21d
1 changed files with 5 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||||||
|
<?php |
||||||
|
$s = '123'; |
||||||
|
$key = new stdClass(); |
||||||
|
var_dump(isset($s[true])); |
||||||
|
var_dump($s[$key]); |
||||||
Loading…
Reference in new issue