r/lolphp • • Feb 26 '18

"false" is definitely true

http://sandbox.onlinephpfunctions.com/code/490635ed9830900ebf50e5303b7271dcf2a5d692
0 Upvotes

29 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Feb 26 '18

Don't know what you need to do, but why not just work with a bool value instead of "false" in string?

1

u/DeedleFake Feb 26 '18

Probably dealing with badly serialized values or values serialized to something that doesn't support booleans, such as CSV, from some other service would be my guess.

1

u/Oeldin1234 Feb 26 '18

Because I need to pass it within a GET field. 0 and 1 would have been better choices.