Quantcast
Channel: how to create and concatenate dynamic variables in PHP? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

how to create and concatenate dynamic variables in PHP?

$
0
0

In this php code, during a while loop, I was hoping to use later 3 variables called $menu_1, $menu_2, and $menu_3. Is this possible in PHP?

while($parent_row = mysql_fetch_array($parent_result)){    $menu_ = "";    $menu_ . $i = "\n\t$('#menu_" . $i . "').hover(function () {";}echo $menu_1;echo $menu_2;echo $menu_3;

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>