What is this PHP syntax? someone writes try {} catch () {} in the php code (){}
This does not seem to be the php syntax.
Reply to discussion (solution)
Yes ...... This is actually ......
This is common in most languages, and php will certainly do.
General? But this is not found in many PHP tutorials. Isn't it a secret!
General? But this is not found in many PHP tutorials. Isn't it a secret!
That is, your tutorial is too old.
No, for example, courses on the market, Gao Luofeng's, Li Yanhui's, Han Shunping's, Xiang Jun's, and Zhang Silian's, there are still many books and documents without such control statements. you cannot say these courses are very old, right?
I understand. here is the statement that throws exception processing.
That's because you can write it without introducing it.
No, for example, courses on the market, Gao Luofeng's, Li Yanhui's, Han Shunping's, Xiang Jun's, and Zhang Silian's, there are still many books and documents without such control statements. you cannot say these courses are very old, right?
That is, they do not know how to write, or they think it is too simple to write.