Re: what happened to that new isset() like language construct

From: Date: Sat, 10 Jul 2004 01:20:15 +0000
Subject: Re: what happened to that new isset() like language construct
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-11057@lists.php.net to get a copy of this message
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']); Guy N. Hurst

« previous php.internals (#11057) next »