i want to concatenate and echo the variable having number at the end of it. like varA1 , varA2 , varA3 .. .... the number generated by rand() function;
I am using
<?php
$varA1 = "Loin";
$varA2 = "Duck";
$varA3 = "Apple;
$varA4 = "Tomato";
$num = rand(1, 4);
?>
Now i want to print variable value randomly as everytime webpage refresh
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks