This is a collection of questions that come up every now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate in maintaining this list.
It used to be hard to find questions about operators and other syntax tokens.¹
The main idea is to have links to existing questions on Stack Overflow, so it's easier for us to reference them, not to copy over content from …
我有一个如下代码,我不知道什么类型的数据变量$ACTIVITYGROUPS[]
有什么,我怎么读它?
$ACTIVITYGROUPS[] = saprfc_table_read ($fce, "ACTIVITYGROUPS", $i);
Run Code Online (Sandbox Code Playgroud)
当我这样做时,print_r(saprfc_table_read ($fce, "ACTIVITYGROUPS", $i);
我得到了一堆没有任何分隔符的数组,并且不确定如何精确数据.谁可以告诉我它在上面的句子中做了什么?
print_r(saprfc_table_read ($fce, "ACTIVITYGROUPS", $i);
结果给出了以下结果:
Array (
[AGR_NAME] => Y:SECURITY_DISPLAY
[FROM_DAT] => 20080813
[TO_DAT] => 99991231
[AGR_TEXT] => Security Display - Users & Roles
[ORG_FLAG] => C
)
Array (
[AGR_NAME] => Y:SECURITY_ADMIN_COMMON
[FROM_DAT] => 20080813
[TO_DAT] => 99991231
[AGR_TEXT] => Security Administrator
[ORG_FLAG] => C
)
Array (
[AGR_NAME] => Y:LOCAL_TRANSPORT
[FROM_DAT] => 20090810
[TO_DAT] => 99991231
[AGR_TEXT] => Transport into target client - …
Run Code Online (Sandbox Code Playgroud)