Beispiel #1
0
}
echo "\nSet Internals -- \n";
var_dump($testRestrictedSet->getArray());
echo "\nIs 1 In Set? ";
try {
    if ($testRestrictedSet->in(1)) {
        echo "Yes\n";
    } else {
        echo "No\n";
    }
} catch (\Exception $e) {
    echo "EXCEPTION CAUGHT\n";
}
echo "Is Set Empty? ";
try {
    if ($testRestrictedSet->isEmpty()) {
        echo "Yes\n";
    } else {
        echo "No\n";
    }
} catch (\Exception $e) {
    echo "EXCEPTION CAUGHT\n";
}
echo "Size of Set -> ";
$success = true;
$count = null;
try {
    $count = $testRestrictedSet->size();
} catch (\Exception $e) {
    $success = false;
}