I have for example var $test and the output is below. You can see its duplicated. How can i make it not duplicated? Is there any function for it?
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
)
)
Expected result:
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
)
)