Y
Y
Yazis2021-06-29 17:37:39
PHP
Yazis, 2021-06-29 17:37:39

Are there the same values ​​in the array?

How to find out if there are identical values ​​in an array? We just need a logical answer at the output IS or NO. "0" or "1". No need to look for exactly what value is repeated, it is not important within the framework of this task. Thanks in advance!

EXAMPLE:
$a = "1";
$b = "2";
$c = "3";
$d = "4";
$e = "1";

$arr = [$a, $b, $c, $d, $e]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question