Dear all,
I'm new learner PHP. I beg help to everybody. Please check out the following code.
<?php
$abc1="ABC1";
$abc2="ABC2";
$abc3="ABC3";
for($i=1; $i<=3; $i++)
{
$abc.=$i;
echo "$".$abc;
}
?>
Here, printed [ $abc1 $abc2 $abc3 ] but i want to print [ ABC1 ABC2 ABC3 ].
please advice me how can i solve this problem.
Thanks