View Single Post
Old 06-15-2008, 04:27 PM  
qxm
Confirmed User
 
Join Date: Jul 2006
Location: NoHo
Posts: 5,970
Need Some Quick PHP Help...PHP Gurus Inside!

So I have an array like this:

PHP Code:
$dic = array(
" integer1 " => " integer2 ",
" integer3 " => " integer4 ",
" integer5 " => " integer6 ",
" integer7 " => " integer8 ",
); 
and I need to asign 3 different possible values to each element of the array so that the script will randomly choose one...... how can I rewrite this array? ... will an array be even the right choice here?

I need something like this (don't know if this is even possible when it comes to arrays):

PHP Code:
$dic = array(
" integer1 " => " integerA " " integerB " " integerC ",
" integer3 " => " integerD " " integerE " " integerF ",
" integer5 " => " integerG " " integerH " " integerI ",
" integer7 " => " integerJ " " integerK " " integerL ",
); 
If integer1 is found the script should access and set a random value within the array...any ideas of how to set this up?
__________________

ICQ: 266990876
qxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote