相关疑难解决方法(0)

Reference — What does this symbol mean in PHP?

What is this?

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.

Why is this?

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 …

php arguments symbols operators

4314
推荐指数
21
解决办法
63万
查看次数

的意义是什么 []

我有一个如下代码,我不知道什么类型的数据变量$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)

php arrays

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

php ×2

arguments ×1

arrays ×1

operators ×1

symbols ×1