mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
add methods arrayToString() and stringToArray()
This commit is contained in:
parent
be2eb700c8
commit
9db601e610
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user