@Immutable
    public static String stripslashes(String string) {
        StringBuilder sb = new StringBuilder();
        int len = string.length();

        for (int i = 0; i < len; i++) {
            char ch = string.charAt(i);

            if (ch == '\\') {
                if (i + 1 < len) {
                    char ch2 = string.charAt(i + 1);
                    if (ch2 == '0') {
                        ch2 = 0x0;
                    }
                    sb.append(ch2);
                    i++;
                }
            } else {
                sb.append(ch);
            }
        }

        return sb.toString();
    }
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