php 怎样把表单传过来数据使用foreach循环接收$_POST的键作为变量用?

2024-12-20 06:14:53
推荐回答(2个)
回答1:

可以用数组来实现:


                
                
                                
            
           
                
                
                                
            
            
                
                
                
            

回答2:

echo $$key = $value; 你把$value重新赋值给了$key