Hi,
I forgot how to print out two variable side by side.
here's my code, but it is not working... care to enlighten me? Thanks.
<?
$num="2";
$main1="dog";
$main2="cat";
for ($i = 1; $i <= $num; $i++) {
echo $main$i; // this will print out "dog" and followby "cat"
}
?>