The internal representation of CLDR uses array keys like:
'calendar[@type="gregorian"]'
This method helps to extract the node name from such keys.
public static getNodeName ( string $nodeString ) : string | ||
$nodeString | string | String with node name and optional attribute(s) |
return | string | Name of the node |