3 ms·
(see: https://news.ycombinator.com/item?id=14883784 https://news.ycombinator.com/item?id=14883784)
by nkkollaw 9y ago
(see: https://news.ycombinator.com/item?id=14883784 https://news.ycombinator.com/item?id=14883784)
- k__ 9y agoMaybe also normalise error handling? Some functions simply return null on an error and some throw.
- nkkollaw 9y agoThat's not a bad idea, but I wonder if deviating too much from PHP (besides naming) would create confusion. If you see..: htmlenties() versus: \PHP\html_entities() ...you assume \PHP\html_entities() works the same as `htmlenties()`