I have 4 arrays for input errors like:
$username_errors=array();
$email_errors=array();
$password_errors=array();
$errors=array();
I want to merge all the arrays values in $errors array and count if $errors is empty then proceed.
Thanks in advance.
array_mergefunction php.net/manual/en/function.array-merge.phparray_push(). likearray_push($errors,$username_errors);