/**
* PHP简洁数组的用法
*
* @param
* @arrange 512-笔记网: www.jb51.cc
**/
Array ( [ ] => Array ( [userid] => [username] => 刘振鹏 [status] => [userpwd] => ) [ ] => Array ( [userid] => [username] => 刘鹏飞 [status] => [userpwd] => ) [ ] => Array ( [userid] => [username] => 刘朋 [status] => [userpwd] => ) [ ] => Array ( [userid] => [username] => admin [status] => [userpwd] => ) [ ] => Array ( [userid] => [username] => admin [status] => [userpwd] => ) [ ] => Array ( [userid] => [username] => admin [status] => [userpwd] => ) [ ] => Array ( [userid] => [username] => liuzp [status] => [userpwd] => ) [ ] => Array ( [userid] => [username] => lzp [status] => [userpwd] => ) )
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
下面是对二维数组的用法
/**
* PHP简洁数组的用法
*
* @param
* @arrange 512-笔记网: www.jb51.cc
**/
for($i= ;$i{
for($j=0;$j{
echo $array[$j][userid];
}
}
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
因为它是个多维数组,一般用
/**
* PHP简洁数组的用法
*
* @param
* @arrange 512-笔记网: www.jb51.cc
**/
foreach ($arr as $key => $value) {
echo "Key: $key; Value: $value
n";
}