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_merge
$arr = array_merge($arr1, $arr2, $arr3);
$array3 = array_merge($array1, $array2);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.