我从基本的php有一个非常简单的问题。 p>
在moodle中,我在php中做了这个 p>
print_r($ USER)
code> pre>
\ n 获取$ USER变量传递的所有信息(下面的代码片段,我认为它是数组) p>
stdClass Object([id] => 4 [auth] =>电子邮件[确认] => 1 [policyagreed] => 0 [已删除] => 0 [已暂停] => 0 [mnethostid] => 1 [用户名] => testowy [ idnumber] => [firstname] =>名字[lastname] => Testowy [email] => aaa@aaa.pl [emailstop] => 0 [icq] => [skype] => [ yahoo] => [目标] => [msn] => [phone1] => [phone2] => [机构] => [部门] => [地址] => [城市] => AAABBB [country] => PL [lang] => [calendartype] => gregorian [theme] => [timezone] => 99 [firstaccess] => 1392147531 [lastaccess] => 1392927159 [lastlogin] => 1392841140>
code> pre>
我想获得名为[firstname]的字段和字段[lastname]并将其置于联系表单中。有人可以 请写信给我 怎么做 ? p>
感谢您的帮助,最好的问候 p>
div>