我在Codeigniter控制器中设置了一个数组,如下所示:
$data['member_beneficiary_info_step4'] = $res_get_member_beneficiary_info_step4;
当var_dump($data['member_beneficiary_info_step4'])
出现此消息时:
array(37) { ["id"]=> string(2) "13" ["member_id"]=> string(2) "51" ["benef_receipt_country_id"]=> string(1) "8" ["benef_payment_mode_id"]=> string(1) "1" ["benef_bank_id"]=> NULL ["benef_relation_with"]=> string(1) "5" ["benef_bank_branch_id"]=> NULL ["benef_first_name"]=> string(3) "Mrs" ["benef_middle_name"]=> string(6) "Mariam" ["benef_last_name"]=> string(6) "Jashim" ["benef_address"]=> string(11) "Mohammadpur" ["benef_bank_account_no"]=> NULL ["benef_dob"]=> string(10) "1990-12-20" ["benef_nationality_id"]=> string(2) "18" ["benef_mobile_no"]=> string(11) "4354534535" ["benef_purpose_of_remit_id"]=> string(1) "1" ["deleted_status"]=> string(1) "0" ["deleted_at"]=> NULL ["created_at"]=> string(19) "2018-12-11 16:18:18" ["created_by"]=> string(1) "1" ["updated_at"]=> string(19) "2018-12-19 07:38:52" ["updated_by"]=> string(1) "1" ["benef_telephone_no"]=> string(9) "356565665" ["benef_email"]=> string(21) "xyz@yahoo.com" ["benef_nid_passport"]=> string(12) "965455345345" ["benef_bank_account_name"]=> NULL ["benef_bank_bsb_code"]=> NULL ["benef_cpf"]=> NULL ["benef_operation"]=> NULL ["benef_ibn"]=> NULL ["benef_ifsc"]=> NULL ["benef_type_of_acc"]=> NULL ["benef_branch_code"]=> NULL ["benef_bic"]=> NULL ["benef_beneficiary_id"]=> string(9) "455454545" ["benef_receipt_country_name"]=> string(10) "Antarctica" ["benef_payment_mode_name"]=> string(4) "Cash" }
这意味着有37个数组索引。但是,当我将此数组发送到Codeigniter视图时,我只得到35索引,在视图上缺少36和37索引的情况下,我低着头2个小时,我是否缺少某些东西