title: Shuffle an array in PHP
body: <p>I have the following code:</p>
  
  <pre><code>&lt;?php
  foreach($bb['slides'] as $b):
  $url = "domain.com/" . $b-&gt;image . ";
  echo($url);
  endforeach;
  ?&gt;
  </code></pre>
  
  <p>The output is as follows:
  domain.com/image1.jpg
  domain.com/image2.jpg
  domain.com/image3.jpg</p>
  
  <p>I am trying to randomize the order of the output. Before the foreach statement I tried to shuffle the array using shuffle($bb); but that did not work. Any help is appreciated.</p>