Semicolon after closing curly bracket in PHP

前端 未结 4 1022
遇见更好的自我
遇见更好的自我 2020-12-07 02:04

I am writing a script to make chunks of a text and send it via SMS. Earlier today i was reviewing some code to split the string in chunks and i saw something I\'ve never see

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 02:11

    I think that those 2 semicolons do nothing here. It is probably being interpreted as an empty expression immediately following the if/while.

提交回复
热议问题