displaying string combinations

From: Date: Fri, 20 Apr 2001 07:02:55 +0000
Subject: displaying string combinations
Groups: php.general 
Request: Send a blank email to php-general+get-49515@lists.php.net to get a copy of this message
hello, I have a bunch of "Banner" strings (ie. $banner1, $banner2, $banner3, $banner4). I have another set of "random" strings that randomly generate a value 1-4 ($RandBanner1, $RandBanner2, $RandBanner3,$RandBanner4). Now I want to display $banner1-4 randomly. I plan on doing this by: print "$banner".$RandBanner1; but that doesnt seem to work...Anyone got any other suggestions? Any help is greatly appricaited. Thanks in advance, Ray

« previous php.general (#49515) next »