title: Sort a string of text in php
body: <p>I am trying to sort and use each link from the url list.
  I have the below code. I have tried to debug but useless im to n00b.</p>
  
  <pre><code>$url="http://image.metglobal.com/hotelpictures/BG27FJ/0T300.jpghttp://image.metglobal.com/hotelpictures/BG27FJ/5D400.jpghttp://image.metglobal.com/hotelpictures/BG27FJ/6CW00.jpghttp://image.metglobal.com/hotelpictures/BG27FJ/IZQ00.jpg";
  $urls=array();
  $urls=split("http://",$url);
  echo "&lt;script type='text/javascript'&gt;alert('$urls[1]');&lt;/script&gt;";
  $arrayPoze= array();
  for($i=0;$i&lt;count($urls);$i++){
  if($i&gt;0)
  $arrayPoze[$i]="http://"+$urls[$i];
  }
  $img0 =$arrayPoze[1];
  </code></pre>