Quote:
Originally Posted by khortez
Suddenly i can see how dumb my second attempt looks. I didn't even refer any, thing from the array at that point. aside from it's size anyway. but anyways thanks. i can see what i did wrong/should have done.
|
There is also a simpler method then this that will give you the same results.
PHP Code:
function onCreated(){
temp.images = { "test1", "test2"};
temp.random = randomstring(temp.images);
echo(temp.random);
}