nobrain Posted April 22, 2010 Share Posted April 22, 2010 I have this code: if (!$value) { $ok=0; break; } It is supposed to check if a variable is not empty and, if it is, then fail. The problem is that sometimes the variable is 0 -- then it also fails. I need it to fail if the variable is empty but not if it has a value of 0. Thanks! Quote Link to comment Share on other sites More sharing options...
nobrain Posted April 22, 2010 Author Share Posted April 22, 2010 Thought is was simple, guess not? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.