Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$_SESSION[{'\'testingrecord'.$testingrecordsfec.'\''}]
这原本看起来像这样
${'testingrecord'.$testingrecordsfec}
但我需要将此处创建的变量添加到全局变量 $_SESSION
这个变量是为数组中的每个项目创建的。
IE
$testingrecord0 $testingrecord1 $testingrecord2
删除{}和\'。
{}
\'
$_SESSION['testingrecord'.$testingrecordsfec];
$_SESSION就像任何其他数组一样,键可以是任何产生字符串或整数的表达式。
$_SESSION