I am trying to get random array:
for example:
$navItems= array(
array(
slug => "top10.php",
title => "Top 10 geriausi"
),
array(
slug => "index.php",
title => "Pagrindinis"
),
array(
slug => "top-prasciausi.php",
title => "Top 10 prasciausi"
),
array(
slug => "visi-politikai.php",
title => "Visi politiki"
),
);
and after that use this random array inside foreach loop like this:
foreach ($navItems as $item) {
echo "<li class=\"hov\"><a href=\"$item[slug]\">$item[title]</a><li>";
}
Instead of $navItems variable i want to use that random arrays from $navItems array