PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$news = array(
array('item_title'=>'cnn', 'item_name'=>'news network'),
array('item_title'=>'espn', 'item_name'=>'sports network'),
array('item_title'=>'hbo', 'item_name'=>'movie network')
);
/*** How to shuffle/randomize the above multidimensional array as i dont want display the elements in the same order
cnn-news network, espn-sports network, hbo-movie network ***/
/*** loop over the array ***/
foreach( $news as $item )
{
echo $item['item_title'].'-'.$item['item_name'].'<br />';
}
?>