예를 들어 var $ test가 있고 출력이 아래에 있습니다. 복제본을 볼 수 있습니다. 중복되지 않도록하려면 어떻게해야합니까? 거기에 어떤 기능이 있습니까?어레이를 복제하는 방법
Array (
[title] => Array (
[0] => this field is required
[1] => must be longer than2
)
[subtitle] => Array (
[0] => this field is required
[1] => must be longer than2
)
)
Array (
[title] => Array (
[0] => this field is required
[1] => must be longer than2
)
[subtitle] => Array (
[0] => this field is required
[1] => must be longer than2
)
)
예상 결과 :
Array (
[title] => Array (
[0] => this field is required
[1] => must be longer than2
)
[subtitle] => Array (
[0] => this field is required
[1] => must be longer than2
)
)
는 적어도 [array_unique (http://php.net/manual/en/function.array-unique.php)를 시도 했습니까? – adeneo
그것은 길다. 그러나 이것을 시도해 보셨습니까? http://dk1.php.net/manual/en/function.array-unique.php – Nikola
예, array_unique ($ test); 나 일하지 않는다 – Bas