954
3879
管理员
<?php $name1='tom'; $name2='berry'; if(rand(1,10)%2){ $name='name1'; //将变量名存储在$name中 }else{ $name='name2'; } echo $$name;
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
手机版|小黑屋|编程站点 ( 冀ICP备2023028127号-2 )|友链申请|
GMT+8, 2025-7-2 01:29 , Processed in 0.093513 second(s), 23 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.