Пример #1
0
<?php

$it = new ArrayIterator(array_fill(0, 2, 'X'), 1);
function badsort($a, $b)
{
    $GLOBALS['it']->unserialize($GLOBALS['it']->serialize());
    return TRUE;
}
$it->uksort('badsort');
Пример #2
0
 public function uksort($cmp_function)
 {
     parent::uksort($cmp_function);
     $this->refreshPositions();
 }