by admin

Php Can't Use Function Return Value In Write Context

PhpPhp CanPhp Can

Php Can't Use Function Return Value In Write Context In Word

HiNo errors, but why dosen't this work when I run it: foreach($children as $child) arrayslice($children, 1, 2);I still get about 40 items returned, it does nothing.And if I try: foreach($children as $child) arrayslice($child, 1, 2);arrayslice expects parameter 1 to be array, object givenAlso with the multisort, been trying everything, just can't get anything to work.WARNINGarraymultisort function.array-multisort: Array sizes are inconsistent. $pages = new TFWNavigation($pageNav);$pages = $pages-getNavigation;foreach ($pages as $index = $topPage)$children = $topPage-getChildren(null,true);//Extract the last Modified Column$lastModified = array;foreach ($pages as $key = $row) $modified$key = $row-lastmodified;//Now sort the pages array on that column.arraymultisort($modified, SORTSTRING, SORTDESC, $pages);if (!empty($children)) foreach($children as $child). Thanks John,I'm just trying that now.Though, I have just tried: arrayslice(vd($children, 1, 2));Which prints all the xml code for 9 NavigationPageItems, so what is that telling us? Minecraft realms can you add mods.