add methods arrayToString() and stringToArray()

This commit is contained in:
Uwe Steinmann 2018-04-19 13:41:50 +02:00
parent be2eb700c8
commit 9db601e610

View File

@ -353,6 +353,26 @@ class Settings { /* {{{ */
return $out;
} /* }}} */
/**
* Return ';' seperated string from array
*
* @param array $value
*
*/
function arrayToString($value) { /* {{{ */
return implode(";", $value);
} /* }}} */
/**
* Return array from ';' seperated string
*
* @param string $value
*
*/
function stringToArray($value) { /* {{{ */
return explode(";", $Value);
} /* }}} */
/**
* set $_viewOnlineFileTypes
*