Do you have a problem with writing like me ()? Sublime in the format after using PHPFMT to become like this (, the introduction of header, tail file statement did not indent, the end of the} is no longer the same line with?>). Did I write enough specs? Or is there a problem with this format plugin?
! [Image of the crossing ...]
Reply content:
Do you have a problem with writing like me ()? Sublime in the format after using PHPFMT to become like this (, the introduction of header, tail file statement did not indent, the end of the} is no longer the same line with?>). Did I write enough specs? Or is there a problem with this format plugin?
! [Image of the crossing ...]
It is not your fault that this mixed format format would have been more or less problematic, and it is not recommended to use formatting in such a situation
Some additional templates are dedicated to the optimization of PHP coding style:
You can abbreviate it to
The syntax of if{}, for{}, foreach{}, while{}, switch{} can be replaced by
if:.. endif For:...endfor; Foreach:...endforeach; While:...endwhile; Swtich XX: ... endswitch;
And so on, the relative structure will be clearer
But you have to say it. After formatting the text editor, there is still a very neat template format, then find a template engine to do this job
aside, the functions of the MYSQL_ series have been deprecated, please switch to PDO or mysqli
Are you highlighting the syntax php? Look at the colors so messy