PHP Syntax issues
-
Hi,
I was asked by my employer to review your code to decide whether we recommend it to our clients and two things caught my attention:
- Unquoted array indexes: You have several unquoted array indexes across several files. These tend to raise E_NOTICE errors and also cause some PHP overhead as it looks for constants before assuming the literal index.
- New lines after closing PHP tags: Please remove the newlines after the closing PHP tags. Actually, it’s even better if you remove the closing PHP tag altogether.
Otherwise the code looks good.
Thanks,
Vinny
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PHP Syntax issues’ is closed to new replies.