Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
veave
· 3y ago · 0 comments
You don't need a die(); when you're at the end of the script already...
Comments
[–]
neoxeon
3y ago
IIRC, calling die() or exit() explicitly when you know it's time to _end_ is a good practice to prevent erroneous or malice including.
[–]
account42
3y ago
You also don't need PHP to return a static status code with no content.