在PHP中从数组中检索值

时间:2011-03-30 02:28:43

标签: php arrays

我有这个数组

Array
(
    [Personal Details] => Array
        (
            [0] => Array
                (
                    [fieldset_name] => Personal Details
                    [field_name] => applicant_name1
                    [field_label] => Your Name
                )

            [1] => Array
                (
                    [fieldset_name] => Personal Details
                    [field_name] => applicant_address
                    [field_label] => Address
                )
                 [Education] => Array
        (
            [0] => Array
                (
                    [fieldset_name] => Education
                    [field_name] => edu_grad_qual
                    [field_label] => Education Qualification (Graduation)
                )

            [1] => Array
                (
                    [fieldset_name] => Education
                    [field_name] => grad_year
                    [field_label] => Year of completion of Graduation
                )
                )
                )

我想只检索此数组中的“个人详细信息”和“教育”字样而不是其值。如何做?

0 个答案:

没有答案