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
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']);
>
>
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