PHP traversal problem, trouble passing the problem
Array:
Array
(
[Doctorcomment] = = Array
(
[0] = = Array
(
[Status] = success
[Strcommenttype] = 1
[Strcommentcontent] = Saada
[Strcreatetime] = 2014-08-20
[strUserName] = Wanhui
[Struserip] = 121.101.220.243
[Strmobile] = 13910527603
)
[1] = = Array
(
[Status] = success
[Strcommenttype] = 2
[Strcommentcontent] = SDFSD
[Strcreatetime] = 2014-08-20
[strUserName] = Sdfds
[Struserip] = 343.2432.432
[Strmobile] = 18600085268
)
[2] = = Array
(
[Status] = success
[Strcommenttype] = 9
[Strcommentcontent] = FSFDDSF
[Strcreatetime] = 2014-08-20
[strUserName] = SDFDSDFD
[Struserip] = 343.2432.432
[Strmobile] = 18600085268
)
)
)
if (Isset ($arrGetDoctorComment) &&!empty ($arrGetDoctorComment) && Is_array ($arrGetDoctorComment)) {
foreach ($arrGetDoctorComment as $arr _3) {
foreach ($arr _3 as $value _3) {
Print_r ($arr _3);
if ($value _3[' strcommenttype '] = = "9") {
echo "". $value _3[' strcommentcontent ')."
";
echo "
";
echo " from". $value _3[' strUserName ']. " ". $value _3[' Strcreatetime ']. " >";
echo "
";
echo "
";
} else {
echo "Null date";
}
}
}
}
?>
Excuse me, why can't I get a value of 3, take a value of 3 and take a value of 1?
------Solution--------------------
Where is 3?
foreach ($arrGetDoctorComment as $arr _3) {
li>