src/DataHandling.php
public static function implode($array, $separator = " > ")
    {
        if ($array === null) {
            return "";
        }

        $elements = [];
        foreach($array as $rawElement) {
            $element = self::sanitizeString($rawElement);

            if ($element !== null) {
                $elements[] = $element;
            }
        }

        return implode($separator, $elements);
    }
public static function implode($array, $separator = " > ")
    {
        if ($array === null) {
            return "";
        }

        $elements = [];
        foreach($array as $rawElement) {
            $element = self::sanitizeString($rawElement);

            if ($element !== null) {
                $elements[] = $element;
            }
        }

        return implode($separator, $elements);
    }
public static function implode ( $ array , $ separator = " > " ) { if ( $ array === null ) { return "" ; } $ elements = [ ] ; foreach ( $ array as $ rawElement ) { $ element = self :: sanitizeString ( $ rawElement ) ; if ( $ element !== null ) { $ elements [ ] = $ element ; } } return implode ( $ separator , $ elements ) ; }
Implodes an array into a string after performing sanitization on each element.

@param string[] $array
@param string $separator
@return string
Implodes an array into a string after performing sanitization on each element .