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. 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 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? 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. 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! Link to comment https://forums.phpfreaks.com/topic/187285-parse-error-where/#findComment-989117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.