Jump to content

Concatenate 2 variables


needs_upgrade

Recommended Posts

Hi guys! I just wanted to ask if it is possible to concatenate 2 variables? Like the following code. But if not, are there other ways?

 

<?PHP
   $num = $_POST['num'];
   for ($i = 1; $i <= $num; $i++) {
      // concat $var1 with $i; ---> how should i do that?
   }
?>

 

Thanks guys.

Link to comment
https://forums.phpfreaks.com/topic/158070-concatenate-2-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.