PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Am I right to assume that I'd have to make a separate variable and assign 'trim($row['product'])' to it and then do an !empty statement on that variable?
Returns FALSE if var has a non-empty and non-zero value.
The following things are considered to be empty:
"" (an empty string)
0 (0 as an integer)
"0" (0 as a string)
NULL
FALSE
array() (an empty array)
var $var; (a variable declared, but without a value in a class)
So not just an empty string. This may be important if you are dealing with user responses where they may enter 0.