* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team * */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\Util; /** * Common string helper */ class String { /** * Split string into an array and trim spaces * * @param string $value * @param string $delimiter * * @return array */ public static function trimSplit($value, $delimiter = ',') { return array_map('trim', explode($delimiter, $value)); } }