* Thus wrote Rasmus Lerdorf:
> On Sun, 11 Jul 2004, Marcus Boerger wrote:
> 
> >   $a = ifsetor($_GET['index'], $default);
> 
> ifsetor() sounds a bit cumbersome to me.
> 
> ...
> 
>     $a = value($_GET['index'], $default);

I like value() although it might be a bit too generic, maybe add
a word to it to help understand what the call does:

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

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



Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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

Reply via email to