Home >Backend Development >PHP Tutorial >怎么合并变量

怎么合并变量

WBOY
WBOYOriginal
2016-06-23 14:03:541436browse

for($i=1;$i   {
$iii$i=3
}

$iii$i这样写报错


回复讨论(解决方案)

你的目的是啥没懂

我要输出$iii1=3 $iii2=3 $iii3=3  $iii4=3
 等等 

for ($i = 1; $i < 11; $i++){	${"iii".$i}=3;}

谢谢 还有这个写法 学习了

学习啦,呵呵,敬礼

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