Welcome Guest, Not a member yet? Register   Sign In
count_all_results returns a string?
#8

[eluser]fritzthecat[/eluser]
@TheFuzzyOne: I'm glad you find PHP so useful and never had any problems with types. Also I'm sure someone will find yours and @daveWid casting examples useful. However I DID have code breaking because it was expecting an integer and count_all_results returns a string. And yes, I did solve the problem by casting, but that's not the question.

The question I am asking - does it make sense to have a function called 'count_something' return a string when a count is blatantly an integer?


Messages In This Thread
count_all_results returns a string? - by El Forum - 04-03-2009, 08:51 AM
count_all_results returns a string? - by El Forum - 04-03-2009, 08:54 AM
count_all_results returns a string? - by El Forum - 04-03-2009, 09:03 AM
count_all_results returns a string? - by El Forum - 04-03-2009, 09:45 AM
count_all_results returns a string? - by El Forum - 04-03-2009, 10:49 AM
count_all_results returns a string? - by El Forum - 04-03-2009, 01:25 PM
count_all_results returns a string? - by El Forum - 04-03-2009, 01:54 PM
count_all_results returns a string? - by El Forum - 04-04-2009, 09:57 AM
count_all_results returns a string? - by El Forum - 04-05-2009, 04:09 AM
count_all_results returns a string? - by El Forum - 04-05-2009, 04:30 AM
count_all_results returns a string? - by El Forum - 04-05-2009, 04:56 AM
count_all_results returns a string? - by El Forum - 04-05-2009, 06:06 AM
count_all_results returns a string? - by El Forum - 04-08-2009, 10:50 AM
count_all_results returns a string? - by El Forum - 04-08-2009, 11:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB