/** * *数组与变量之间转换 **/ $name='jb51'; $email='jb51@jb51.net'; $info=compact('name','email'); print_r($info); var_dump(extract(['name'=>'jack','age'=>34])); echo $name; echo $age;