Marc Richards wrote:
3) So this leaves a function call which begs two questions: What do we call it, and what is the function syntax.

(a) What do we call it

We have a function that pretty much serves the same purpose: makeset($var, 'default').


The name was born because this function was made to replace a list of statements that make sure a variable is set:
if (!isset($_REQUEST['foo'])) $_REQUEST['foo'] = 0;


This is a function that takes its first argument by reference btw...

But my point was the name, maybe some of you might like it :).

Bert

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



Reply via email to