fatkatie Posted February 17, 2018 Share Posted February 17, 2018 Why can't the comma operator be used? I get the warning I get in the first construct but don't understand the complete fail on the second. Thanks while ($pending_row || @( ($row_l = $sth_l->fetch(PDO::FETCH_OBJ)) | ($row_u = $sth_u->fetch(PDO::FETCH_OBJ) ))){ while ($pending_row || @( ($row_l = $sth_l->fetch(PDO::FETCH_OBJ)) , ($row_u = $sth_u->fetch(PDO::FETCH_OBJ) ))){ Quote Link to comment https://forums.phpfreaks.com/topic/306571-comma-operator-vs-binary-op/ Share on other sites More sharing options...
Solution requinix Posted February 17, 2018 Solution Share Posted February 17, 2018 PHP does not have a comma operator. Quote Link to comment https://forums.phpfreaks.com/topic/306571-comma-operator-vs-binary-op/#findComment-1556503 Share on other sites More sharing options...
fatkatie Posted February 17, 2018 Author Share Posted February 17, 2018 Well then ... Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/306571-comma-operator-vs-binary-op/#findComment-1556505 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.