Horde_ActiveSync_Wbxml_Decoder::_splitAttribute PHP Method

_splitAttribute() protected method

Parses an attribute string
protected _splitAttribute ( string $attr ) : array
$attr string The raw attribute value.
return array The attribute hash
    protected function _splitAttribute($attr)
    {
        $attributes = array();
        $pos = strpos($attr, chr(61));
        // equals sign
        if ($pos) {
            $attributes[substr($attr, 0, $pos)] = substr($attr, $pos + 1);
        } else {
            $attributes[$attr] = null;
        }
        return $attributes;
    }