Re: [PHP-DEV] Re: Function proposal: varset

2011-04-20 Thread Arpad Ray
On Wed, Apr 20, 2011 at 11:50 PM, Mark wrote: > On Wednesday, April 20, 2011, D. Dante Lorenso wrote: >> On 4/20/11 9:55 AM, Mark wrote: >> >> Hi, >> This proposal is for the often called line like this: >> $var = isset($_GET['var']) ? $_GET['var'] : ''; >> Only a shorter and imho a cleaner solut

[PHP-DEV] Re: Function proposal: varset

2011-04-20 Thread Mark
On Wednesday, April 20, 2011, D. Dante Lorenso wrote: > On 4/20/11 9:55 AM, Mark wrote: > > Hi, > This proposal is for the often called line like this: > $var = isset($_GET['var']) ? $_GET['var'] : ''; > Only a shorter and imho a cleaner solution to get the same: > $var = varset($_GET['var']); > >

[PHP-DEV] Re: Function proposal

2005-05-16 Thread Greg Beaver
AnteD wrote: /** * Prints the variable in HTML format... * * @param mixed $var * @param bool $return return or print the var * @return string */ function print_pre($var, $return = false) { $retval = ÂÂ.print_r($var, true).Â; if($return) return $retval; print($retval); } oklet