I'm trying to combine a string with variable to get needed variable. This is the code that I think should be fine:
$desc1 = 123;
$desc2 = "asdf";
$desc3 = "asdf123";
for($i = 1; $i<= 3; $i++)
{
echo
"
<p>$desc".$i."</p>
";
}
It should print me:
123
asdf
asdf123
Instead it just prints me:
1
2
3
What's the problem?