Reddit.com: Less obvious PHP tricks?
Note: This article was originally published at PHPDeveloper on 30 December 2010.
On Reddit.com there's a recent post with a question about some of the lesser known PHP tricks that other developers might have picked up out there. The post has pulled in quite a few suggestions including:
- Using predefined interfaces
- The streams API
- Defining constant defaults
- The speed differences in reading parts of arrays
- Boolean attribution