I have this following code.
$sn_count = 1;
foreach($points as $point){
echo "<div class=\"points\">";
echo "<div class=\"serial\">".$sn_count."</div>";
echo "<div class=\"pointsdesc\">";
echo $point['points_description'];
echo "</div></div>";
$sn_count++;
}
Is it possible to assign the above code to a variable $pointsvar
Everytime i use $pointsvar
the above code should be printed. Please help.
Thanks