Esempio n. 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');
Esempio n. 2
0
 public function uksort($cmp_function)
 {
     parent::uksort($cmp_function);
     $this->refreshPositions();
 }