co.ador Posted January 5, 2010 Share Posted January 5, 2010 <?php if(!empty($var1, $var2, $var3)) {}// parse error line 179?> Thought it was ok. Quote Link to comment https://forums.phpfreaks.com/topic/187285-parse-error-where/ Share on other sites More sharing options...
KevinM1 Posted January 5, 2010 Share Posted January 5, 2010 <?php if(!empty($var1, $var2, $var3)) {}// parse error line 179?> Thought it was ok. empty Quote Link to comment https://forums.phpfreaks.com/topic/187285-parse-error-where/#findComment-989038 Share on other sites More sharing options...
co.ador Posted January 5, 2010 Author Share Posted January 5, 2010 you mean this <?php if !empty($var1, $var2, $var3) { } else { } With that set up still displaying the parse error? Quote Link to comment https://forums.phpfreaks.com/topic/187285-parse-error-where/#findComment-989044 Share on other sites More sharing options...
premiso Posted January 5, 2010 Share Posted January 5, 2010 Hey meant read the manual on empty to see its proper usage: if (!empty($var1) && !empty($var2 && !empty($var3)) { Would be correct syntax for what you wanted todo. Quote Link to comment https://forums.phpfreaks.com/topic/187285-parse-error-where/#findComment-989065 Share on other sites More sharing options...
co.ador Posted January 5, 2010 Author Share Posted January 5, 2010 thank you premiso that worked! Quote Link to comment https://forums.phpfreaks.com/topic/187285-parse-error-where/#findComment-989117 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.