我有例如 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
)
)