Jump to content

comma operator v/s binary op


fatkatie

Recommended Posts

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) ))){
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.