Ouzo\Utilities\Arrays::concat PHP Метод

concat() публичный статический Метод

Unlike flatten, concat does not merge arrays that are nested more that once. Example: $result = Arrays::concat(array(array(1, 2), array(3, 4))); Result: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )
public static concat ( array $arrays ) : array
$arrays array
Результат array
    public static function concat(array $arrays)
    {
        if (empty($arrays)) {
            return array();
        }
        return call_user_func_array('array_merge', $arrays);
    }

Usage Example

Пример #1
0
 public function getParameters()
 {
     return Arrays::concat(Arrays::map($this->conditions, function (WhereClause $where) {
         return $where->getParameters();
     }));
 }
All Usage Examples Of Ouzo\Utilities\Arrays::concat