Welcome Guest, Not a member yet? Register   Sign In
Weird logic error
#7

[eluser]diego.greyrobot[/eluser]
I default $id to false so that i can call that function with or without arguments. Help me to understand this correctly, if i use a default in the arg declaration AND i pass a value in $id in that function, the if else block will use both values?

if i delete the default value for $id and later call this function without arguments, will there be a problem?


Messages In This Thread
Weird logic error - by El Forum - 03-07-2009, 12:54 PM
Weird logic error - by El Forum - 03-07-2009, 01:09 PM
Weird logic error - by El Forum - 03-07-2009, 01:18 PM
Weird logic error - by El Forum - 03-07-2009, 01:33 PM
Weird logic error - by El Forum - 03-07-2009, 06:29 PM
Weird logic error - by El Forum - 03-07-2009, 06:58 PM
Weird logic error - by El Forum - 03-07-2009, 07:46 PM
Weird logic error - by El Forum - 03-07-2009, 10:15 PM
Weird logic error - by El Forum - 03-07-2009, 10:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB