Welcome Guest, Not a member yet? Register   Sign In
URI - Passing text
#7

[eluser]Michael Wales[/eluser]
You hit the nail on the head there alpar - that's exactly the reason. I looked at that code for 15 minutes and failed to notice the 0 was not surrounded by quotes.

Yet another reason I prefer to use booleans. In this code you are expecting to receive a string, but if something messes up, you are returning an integer - it can get confusing and lead to some issues.

The strict boolean comparisons available with === and !== are extremely valuable in these circumstances.


Messages In This Thread
URI - Passing text - by El Forum - 08-22-2007, 06:05 AM
URI - Passing text - by El Forum - 08-22-2007, 06:16 AM
URI - Passing text - by El Forum - 08-22-2007, 06:58 AM
URI - Passing text - by El Forum - 08-22-2007, 07:35 AM
URI - Passing text - by El Forum - 08-22-2007, 07:45 AM
URI - Passing text - by El Forum - 08-22-2007, 08:36 AM
URI - Passing text - by El Forum - 08-22-2007, 08:38 AM
URI - Passing text - by El Forum - 08-22-2007, 08:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB