@Immutable
    public static Memory strlen(Environment env, TraceInfo trace, Memory string) {
        if (string.isArray()) {
            env.warning(trace, "expects parameter 1 to be string, array given");
            return Memory.NULL;
        }
        if (string instanceof BinaryMemory)
            return LongMemory.valueOf(string.getBinaryBytes(env.getDefaultCharset()).length);

        return LongMemory.valueOf(string.toString().length());
    }
Parses the cslashes bitmap returning an actual bitmap.

@param charset the bitmap string

@return the actual bitmap
exts/jphp-zend-ext/src/main/java/org/develnext/jphp/zend/ext/standard/StringFunctions.java