$_SESSION[{''testingrecord'.$testingrecordsfec.'''}]
这原本是这样的
${'testingrecord'.$testingrecordsfec}
但我需要将此处创建的变量添加到全局变量 $_SESSION
此变量是为数组中的每个项创建的。
即
$testingrecord0
$testingrecord1
$testingrecord2
删除{}
和'
。
$_SESSION['testingrecord'.$testingrecordsfec];
$_SESSION
就像任何其他数组一样,键可以是导致字符串或整数的任何表达式。