Voting

: zero plus four?
(Example: nine)

The Note You're Voting On

opencart dot ocfilter at gmail dot com
2 years ago
Be careful!

<?php

var_dump
(array_search('needle', [ 0 => 0 ])); // int(0) (!)

var_dump(array_search('needle', [ 0 => 0 ], true)); // bool(false)

?>

But, in php 8

<?php

var_dump
(array_search('needle', [ 0 => 0 ])); // bool(false)

?>

<< Back to user notes page

To Top