我如何回应下一个数组的个别值我是gna post有人能告诉我,我设法用每个循环回显所有值,但我想要个别值,因为我需要将它们插入数据库。 Thxn提前。
global $ax_attributes;
$ax_attributes = array(
'fullname' => array(
'scheme' => 'http://axschema.org/namePerson',
'text' => 'Celé jméno',
'required' => FALSE
),
'firstname' => array(
'scheme' => 'http://axschema.org/namePerson/first',
'text' => 'Jméno',
'required' => TRUE
),
'lastname' => array(
'scheme' => 'http://axschema.org/namePerson/last',
'text' => 'Příjmení',
'required' => TRUE
),
'nick' => array(
'scheme' => 'http://axschema.org/namePerson/friendly',
'text' => 'Přezdívka',
'required' => FALSE
),
'company' => array(
'scheme' => 'http://axschema.org/company/name',
'text' => 'Jméno společnosti',
'required' => FALSE
),
'h_address' => array(
'scheme' => 'http://axschema.org/contact/postalAddress/home',
'text' => 'Domácí adresa – Ulice',
'required' => TRUE
),
'h_address2' => array(
'scheme' => 'http://axschema.org/contact/postalAddressAdditional/home',
'text' => 'Domácí adresa – Ulice2',
'required' => FALSE
),
'h_address3' => array(
'scheme' => 'http://specs.nic.cz/attr/addr/main/street3',
'text' => 'Domácí adresa – Ulice3',
'required' => FALSE
),
答案 0 :(得分:1)
实施例
echo $ax_attributes['fullname']['scheme'];
答案 1 :(得分:0)
只需提供密钥......
echo $ax_attributes['nick']['scheme'];