We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From manual page: https://php.net/filter.filters.validate
Documentation states that FILTER_VALIDATE_BOOL is simply an alias for FILTER_VALIDATE_BOOLEAN but both do not behave in the same way.
filter_var(NULL, FILTER_VALIDATE_BOOLEAN); // bool(false) filter_var(NULL, FILTER_VALIDATE_BOOL); // NULL
Why is that ?
The text was updated successfully, but these errors were encountered:
Am I missing something? https://3v4l.org/Hp37N
Sorry, something went wrong.
This does not seem like a documentation bug.
No branches or pull requests
From manual page: https://php.net/filter.filters.validate
Documentation states that FILTER_VALIDATE_BOOL is simply an alias for FILTER_VALIDATE_BOOLEAN but both do not behave in the same way.
filter_var(NULL, FILTER_VALIDATE_BOOLEAN); // bool(false)
filter_var(NULL, FILTER_VALIDATE_BOOL); // NULL
Why is that ?
The text was updated successfully, but these errors were encountered: