set a random string for a variable in PHP
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4233407/get-random-item-from-array">Get random item from array</a>  </p>
</blockquote>



<p>I need a code to set a random string for a variable.
of course I have the string and they are not generated.
I can put the strings in the array</p>

<pre><code>$strings= array('one', 'two', 'yes', 'no', 'yeaa');
$random_str = ????
</code></pre>

<p>I need $random_str to be one or no or maybe two.
Totally randomly from $strings.</p>

<p>rand and shuffle function didn't do that for me simply, and I'm beginner in php, so I need your help.
so thank you guys for helping me</p>
