Skip to content

in_array function with empty array #15971

@qlixes

Description

@qlixes

Description

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 Version

PHP 8.3

Operating System

OSX Ventura

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions