Welcome Guest, Not a member yet? Register   Sign In
Checking a variable for existance without isset(), empty(), or any other function
#5

[eluser]Colin Williams[/eluser]
First, like John_Betong alluded to, sometimes you want to provide default values to avoid isset() calls. But other times you do want the isset() call because the mere existence of a variable, even if empty, might have ramifications elsewhere in the application.

Second, don't confuse the wise goal of writing the least amount of code necessary with the not-so-wise goal of using the least amount of characters of code possible.


Messages In This Thread
Checking a variable for existance without isset(), empty(), or any other function - by El Forum - 11-24-2009, 01:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB