public static Memory explode(String delimiter, String string, int limit) {
        if (limit == 0)
            limit = 1;

        String[] result;
        if (limit < 0) {
            result = StringUtils.split(string, delimiter);
            result = Arrays.copyOfRange(result, 0, result.length + limit);
        } else
            result = StringUtils.split(string, delimiter, limit);

        return ArrayMemory.ofStrings(result);
    }
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