codice:
$x = 1 ;
while ( list($key, $directory) = each($cronosdir)) {

    echo "$directory";
    if ( $x == 5 )
    {
        break ;
    }
    $x++ ;
}