RE: [PHP] displaying string combinations
you can do: echo ${"banner$RandBanner"} this will create a variable for you. However, I think you should be using an array. Things are getting much faster and better. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.
RE: [PHP] displaying string combinations
why not do this: //generate your random number and save it in $randomNumber switch($randomNumber){ case 1: echo "$banner1"; break; case 2: echo "$banner2"; break; case 3: echo "$banner3";