PHP - 从链接数组中获取单个值

时间:2017-06-29 22:01:48

标签: php arrays

所以我有一个似乎有"链接"值。

当我打印我的阵列时,给我这个:

Array ( [0] => Field1 [1] => Field2 [2] => Field3 [3] => 
Field4 [4] => Field5 [5] => Field6 [6] => Field7 [7] => Field8 ) 

Array ( [0] => VarA [1] => VarB [2] => VarC [3] => 
VarD [4] => VarE [5] => VarF < [6] => VarG [7] 
=> VarH) 

Array ( [0] => Var1 [1] => Var2 [2] => Var3 [3] => 
Var4 [4] => Var5 [5] => Var6 [6] => Var7 [7] => Var8)

所以当我这样做时:

echo $array[0];

打印:

Field1VarAVar1

如何单独访问每个值?

0 个答案:

没有答案