3 ms·
Its a syntax problem then ? what if the annotation wasn't inside comments would that make it ok ?
by chaosfox 14y ago
Its a syntax problem then ? what if the annotation wasn't inside comments would that make it ok ?
- bertzzie 14y agoI think yes. It's ok if it's not inside comments. Just like any other language (I know at least C# and Java do this for example).
- astrodust 14y agoA lot of this boils down to PHP's feeble "array" declarator. Take a page from JavaScript and make it easy.
- mark_story 14y agoAs of PHP 5.4 you can use [] to define arrays. It saves some typing, and is less noisy on the eyes I guess.
- astrodust 14y agoThat's exactly the way it should be. Hopefully this will become the standard before long.