private static function randomizeServerPoolConnection($options)
    {
        if (array_key_exists('host', $options) && is_array($options['host'])) {
            if (1 < count($options['host'])) {
                shuffle($options['host']);
            }
            $options['host'] = reset($options['host']);
        }

        return $options;
    }
private static function randomizeServerPoolConnection($options)
    {
        if (array_key_exists('host', $options) && is_array($options['host'])) {
            if (1 < count($options['host'])) {
                shuffle($options['host']);
            }
            $options['host'] = reset($options['host']);
        }

        return $options;
    }
private static function randomizeServerPoolConnection ( $ options ) { if ( array_key_exists ( 'host' , $ options ) && is_array ( $ options [ 'host' ] ) ) { if ( 1 < count ( $ options [ 'host' ] ) ) { shuffle ( $ options [ 'host' ] ) ; } $ options [ 'host' ] = reset ( $ options [ 'host' ] ) ; } return $ options ; }
If an array og db hosts is provided, randomize the selection of one of them
@param array $options
@return array
If an array og db hosts is provided randomize the selection of one of them