This is my php code:
$text1 = "text 1";
$text2 = "text 2";
$text3 = "text 3";
for($i=1; $i<=3; $i++){
echo "<script>alert('$text1');</script>";
}
In here I want to create $text1, $text2 ... variables automatically using for but when I replace the $text1 with $text.$i php fetchs $text + $i me individually. How can I do this?