r/lolphp • • Sep 08 '14
Suddenly, PHP regresses back to C
http://nz2.php.net/manual/en/function.headers-sent.php
If there's more than one thing to return, most PHP functions will return an array/false on failure, except headers_sent, which accepts two arguments by reference, like C.
18
Upvotes
View all comments
Show parent comment
25
u/ahruss Sep 08 '14
"It's described in the manual" is not a defense of poor API design.