How would I set PHP to randomly chose between these two sets of variables to use:
$key = goop;
$john = heck yeah;
and this
$key = roop;
$john = reck reah;
Thanks ever so much! :)
How would I set PHP to randomly chose between these two sets of variables to use:
$key = goop;
$john = heck yeah;
and this
$key = roop;
$john = reck reah;
Thanks ever so much! :)
I'd recommend using an array:
$selection = array(
array('goop', 'heck yeah'),
array('roop', 'reck reah')
);
shuffle($selection);
list($key, $john) = array_pop($selection);