protected function flattenArguments()
	{
		$args = func_get_args();
		$flat = [];

		foreach ($args as $arg) {
			if (is_array($arg)) {
				$flat = call_user_func_array(array($this, 'flattenArguments'), array_merge($flat, $arg));
				continue;
			}
			array_push($flat, $arg);
		}

		return $flat;
	}
protected function flattenArguments()
	{
		$args = func_get_args();
		$flat = [];

		foreach ($args as $arg) {
			if (is_array($arg)) {
				$flat = call_user_func_array(array($this, 'flattenArguments'), array_merge($flat, $arg));
				continue;
			}
			array_push($flat, $arg);
		}

		return $flat;
	}
protected function flattenArguments ( ) { $ args = func_get_args ( ) ; $ flat = [ ] ; foreach ( $ args as $ arg ) { if ( is_array ( $ arg ) ) { $ flat = call_user_func_array ( array ( $ this , 'flattenArguments' ) , array_merge ( $ flat , $ arg ) ) ; continue ; } array_push ( $ flat , $ arg ) ; } return $ flat ; }
Flattens its arguments array into a simple array.

@return array
Flattens its arguments array into a simple array .