PHP: be careful with exit()/die()

These functions show messages passed as param, but(!) if this param is number then php interpreter thinks that param is error code and doesn’t show it. So be careful again – convert param to string before you pass something to these functions.

Books to read

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *