Codice PHP:
function scorri($array$point, &$risultati) {
    foreach (
$array as $x) {
        if ( 
$point == $x$risultati[] = $x;
    }