public static function encodeArray($uris, $encodeMode = self::ENCODE_ARRAY_ALL, $dotMode = true, $uniqueMode = false)
    {
        $returnValue = [];

        if (is_array($uris)) {
            foreach ($uris as $key => $value) {
                if ($encodeMode == self::ENCODE_ARRAY_KEYS || $encodeMode == self::ENCODE_ARRAY_ALL) {
                    $key = self::encode($key, $dotMode);
                }
                if ($encodeMode == self::ENCODE_ARRAY_VALUES || $encodeMode == self::ENCODE_ARRAY_ALL) {
                    $value = self::encode($value, $dotMode);
                }
                $returnValue[$key] = $value;
            }
        }

        if ($uniqueMode) {
            $returnValue = array_unique($returnValue);
        }

        return $returnValue;
    }
public static function encodeArray($uris, $encodeMode = self::ENCODE_ARRAY_ALL, $dotMode = true, $uniqueMode = false)
    {
        $returnValue = [];

        if (is_array($uris)) {
            foreach ($uris as $key => $value) {
                if ($encodeMode == self::ENCODE_ARRAY_KEYS || $encodeMode == self::ENCODE_ARRAY_ALL) {
                    $key = self::encode($key, $dotMode);
                }
                if ($encodeMode == self::ENCODE_ARRAY_VALUES || $encodeMode == self::ENCODE_ARRAY_ALL) {
                    $value = self::encode($value, $dotMode);
                }
                $returnValue[$key] = $value;
            }
        }

        if ($uniqueMode) {
            $returnValue = array_unique($returnValue);
        }

        return $returnValue;
    }
public static function encodeArray ( $ uris , $ encodeMode = self :: ENCODE_ARRAY_ALL , $ dotMode = true , $ uniqueMode = false ) { $ returnValue = [ ] ; if ( is_array ( $ uris ) ) { foreach ( $ uris as $ key => $ value ) { if ( $ encodeMode == self :: ENCODE_ARRAY_KEYS || $ encodeMode == self :: ENCODE_ARRAY_ALL ) { $ key = self :: encode ( $ key , $ dotMode ) ; } if ( $ encodeMode == self :: ENCODE_ARRAY_VALUES || $ encodeMode == self :: ENCODE_ARRAY_ALL ) { $ value = self :: encode ( $ value , $ dotMode ) ; } $ returnValue [ $ key ] = $ value ; } } if ( $ uniqueMode ) { $ returnValue = array_unique ( $ returnValue ) ; } return $ returnValue ; }
Encode the uris composing either the keys or the values of the array in

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  array uris
@param  int encodeMode
@param  boolean dotMode
@param  boolean uniqueMode
@return array
Encode the uris composing either the keys or the values of the array in