Array Twice

I have a rather simple issue. I can’t find a solution.
I have an array…
$questions = array (“question1”,
“question2”,
“question3”,
“question4”,
“question5”,
“question6”,
“question7”,
“question8”);
$random_question = $questions[rand(0, count($questions)-1)];

Now I want to have { … urlencode("$random_question ?") …} and { … <?php echo [b]$random_question[/b];?>? … } both display the exact same value from the array.

No matter how I try, both $random_questions display different values. Basically, I want to use $random_question to obtain a value from the array then later repeat that value as an “echo”.

Sponsor our Newsletter | Privacy Policy | Terms of Service