Home >Backend Development >PHP Tutorial >array('username' 'userpwd')怎么变成变量

array('username' 'userpwd')怎么变成变量

WBOY
WBOYOriginal
2016-06-13 11:46:361047browse

array('username', 'userpwd')怎样变成变量
array('username', 'userpwd')怎样变成变量 $username,  $userpwd


------解决方案--------------------
或者

foreach($my_array as $v) $arr[$v]=$v;<br /><br />extract($arr, EXTR_OVERWRITE);<br />var_dump($username,$userpwd);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn