How about default($var, expr)?

Andi

At 09:43 AM 7/11/2004 -0700, Rasmus Lerdorf wrote:
On Sun, 11 Jul 2004, Marcus Boerger wrote:

>   $a = ifsetor($_GET['index'], $default);

ifsetor() sounds a bit cumbersome to me.

Some other suggestions:

    $a = is($_GET['index'], $default);

    $a = isor($_GET['index'], $default);

    $a = valid($_GET['index'], $default);

    $a = value($_GET['index'], $default);

-Rasmus

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to