What is the difference between value = NULL; and value = ""; in PHP ?
Am facing wierd response as if I set value = ""; than I get empty array response from database which is what am supposed to get but if I set value = NULL; than I get empty string response from mysql database instead of empty array response.
I am not sure why this is the case. Any Suggestions !!!
empty strings and NULL are treated differently in MySQL. I had a similar question about this issue:
why use NOT NULL default = ”?
You have 2 solutions here: