4
Use the Alternative syntax for control structures brings huge changes in the amount of code lines of a project, but there is some change in security?
4
Use the Alternative syntax for control structures brings huge changes in the amount of code lines of a project, but there is some change in security?
1
That would hardly have any effect on performance. PHP and other scripting languages already lose performance (compared to compiled ones) by being interpreted. Performance should be when you find some bottleneck in the system(slowness), but first it is necessary to measure it, otherwise how will you know?
0
The amount of extra script is very small (can be said to be insignificant), so processing will be fast and without visible changes.
Browser other questions tagged php performance
You are not signed in. Login or sign up in order to post.
Hardly ...
– rray
No ( ) ()
– Wallace Maxters
What makes a difference is the readability of the code. If you use the ternary operator for flow control, the code is much less readable.
– bfavaretto