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
The following code:
<?php print_r(in_array('127.0.0.1', []);
Resulted in this output:
empty blank page
But I expected this output instead:
it shoud show boolean type
PHP 8.3
OSX Ventura
The text was updated successfully, but these errors were encountered:
This is unrelated to in_array, which returns false fine. What you are seeing is that print_r for false doesn't show anything
in_array
false
print_r
php-src/Zend/zend_operators.c
Lines 1016 to 1017 in 64d959e
Sorry, something went wrong.
Meanwhile var_dump doesn't have that... "quirk" of behavior.
No branches or pull requests
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.3
Operating System
OSX Ventura
The text was updated successfully, but these errors were encountered: