Change shuffle array to algoritym

Discussion in 'PHP' started by ojsimon, Jan 27, 2008.

  1. #1
    hi
    i found an algorithm http://www.webmastersherpa.com/content/useful-code/32/ Which i want to use on my rss feed merger instead of the shuffle which is in the code extract bellow, how do i do this?

    shuffle($all);
    foreach($all as $j=>$k) {
    if(!trim($k['title'])||!trim($k['link']))
    unset($all[$j]);
    }

    return $all;
    }

    how can i make this work with the algorithm?

    Thanks
     
    ojsimon, Jan 27, 2008 IP