Is isset() better than $ != ""?
Often, I may have a 0 as values. While $ != "" doesn't recognize 0s (as in, that if would be false), isset() seems to work. Should I change all my $ != "" to isset()s, or are there other factors I should check?
Is isset() better than $ != ""?
Often, I may have a 0 as values. While $ != "" doesn't recognize 0s (as in, that if would be false), isset() seems to work. Should I change all my $ != "" to isset()s, or are there other factors I should check?