I've a problem with the in_array
function.
This is my array
: keys can be a mix of string or int like this example.
<?php
$array = array(
"a" => true,
"b" => true,
"c" => true,
"d" => true,
0 => "Code",
1 => "Time",
2 => "Other"
);
var_dump($array);
if ( in_array("Test", $array) ) { echo "found"; }
This code print ALWAYS found
.
Why?