【发布时间】:2015-05-16 13:06:04
【问题描述】:
如何获取 SchoolType、SchoolLocation、DegreeName、StartDate 和 EndDate ?
我试图像这样获取这些价值
foreach ($Edu as $attr)
{
$attr->SchoolType;
}
但它显示的是空值。
这是我的数组
Array (
[@attributes] => Array (
[SchoolType] => University
)
[School] => Array (
[SchoolName] => Northeastern University
)
[SchoolLocation] => Northeastern
[Degree] => Array (
[@attributes] => Array (
[DegreeType] => Graduate/ Undergraduate
)
[IsHighestDegee] => True
[DegreeName] => Bachelor
[DegreeDate] => Array (
[0] => Array (
)
)
[DegreeMajor] => Array (
[Name] => Science
)
[EducationDetails] => Science
[DegreeMeasure] => Array (
[EducationMeasure] => Array (
[MeasureSystem] => Array (
)
[MeasureValue] => Array (
[0] => Array (
)
)
)
)
[DateofAttendance] => Array (
[StartDate] => Array (
[0] => Array (
)
)
[EndDate] => Array (
[0] => Array (
)
)
)
[EducationDescription] => Northeastern University, Boston MA Bachelor of Science, Business Administration
)
)
请帮我取这个数组中的值。
【问题讨论】:
标签: php arrays multidimensional-array