Hello & thanks Guy,

  a very constructive mail! Of yours i like getval() and
var_default() and getdefault() a little bit.

  so atm i am in favor of either getval() or ifsetor().

marcus

Saturday, July 10, 2004, 3:20:15 AM, you wrote:

> Andi Gutmans wrote:
>> Personally I am not that fond of ifsetor(), but I am definitely not fond 
>> of ?: because of Marcus' reasons.
>> 

> Here is a list of other possible names to ponder, with examples:


> // family: gettype, getenv, getopt, gets, getc

> getval()
>               // $v = getval($_GET['v'],0);
>               // $x = getval($_GET['x']);

> getv()
>               // $v = getv($_GET['v'],0);
>               // $x = getv($_GET['x']);

> getdefault()
>               // $v = getdefault($_GET['v'],0);
>               // $x = getdefault($_GET['x']);

> getd()
>               // $v = getd($_GET['v'],0);
>               // $x = getd($_GET['x']);

                
> // family: var_dump, var_export

> var_default()
>               // $v = var_default($_GET['v'],0);
>               // $x = var_default($_GET['x']);
                                
                
> // family: floatval, intval, strval
                
> defaultval()
>               // $v = defaultval($_GET['v'],0);
>               // $x = defaultval($_GET['x']);

> shadowval()
>               // $v = shadowval($_GET['v'],0);
>               // $x = shadowval($_GET['x']);

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

Reply via email to