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

怎么合并变量

WBOY
Release: 2016-06-23 14:03:54
Original
1432 people have browsed it

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;}
Copy after login

谢谢 还有这个写法 学习了

学习啦,呵呵,敬礼

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template