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 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 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 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.