public static function extractStrings(DOMElement $parent, string $namespaceURI, string $localName) : array
    {
        $ret = [];
        foreach ($parent->childNodes as $node) {
            if ($node->namespaceURI !== $namespaceURI || $node->localName !== $localName) {
                continue;
            }
            $ret[] = trim($node->textContent);
        }

        return $ret;
    }
public static function extractStrings(DOMElement $parent, string $namespaceURI, string $localName) : array
    {
        $ret = [];
        foreach ($parent->childNodes as $node) {
            if ($node->namespaceURI !== $namespaceURI || $node->localName !== $localName) {
                continue;
            }
            $ret[] = trim($node->textContent);
        }

        return $ret;
    }
public static function extractStrings ( DOMElement $ parent , string $ namespaceURI , string $ localName ) : array { $ ret = [ ] ; foreach ( $ parent -> childNodes as $ node ) { if ( $ node -> namespaceURI !== $ namespaceURI || $ node -> localName !== $ localName ) { continue ; } $ ret [ ] = trim ( $ node -> textContent ) ; } return $ ret ; }
Extract strings from a set of nodes.

@param \DOMElement $parent The element that contains the localized strings.
@param string $namespaceURI The namespace URI the string elements should have.
@param string $localName The localName of the string elements.
@return array The string values of the various nodes.
Extract strings from a set of nodes .