0

I want to show a defined variable by using for loop like this code:

<?php
  define("V_1","Variable1");
  define("V_2","Variable2");
  define("V_3","Variable3");
  for ($f=1;$f<4;$f++){
    echo "<p>".V_.$f."</p>";
  }
?>

Is there any one can help me with this?

Mousa Saleh
  • 42
  • 1
  • 10

0 Answers0